https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88642
Bug ID: 88642 Summary: Accepts ill-formed program with invalid scalar initialization syntax. Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anders.granlund.0 at gmail dot com Target Milestone: --- Test program (test.c): int main() { int x = { { 0 } }; } Compilation command line: clang prog.c -Wall -Wextra -std=c11 -pedantic-errors Observed behaviour: No error message outputed. Only warning messages outputed. Expected behaviour: An error message outputed. The initalizer 0 or { 0 } is valid according to 6.7.9/11, but not { { 0 } } . Note: Clang gives the expected error message for the program.