clang missing pedantic warning for non-constant initializer for aggregate in c89 mode #4678
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
duplicate
Resolved as duplicate
Extended Description
Testcase (clang -c89 -pedantic):
struct x {int x;};
void a(int y) { struct x x = {y}; }
This should warn because it's a constraint violation in C89.
The text was updated successfully, but these errors were encountered: