http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59351
Bug ID: 59351 Summary: ICE on empty compound literal with -pedantic Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: edsrzf at gmail dot com The code below causes an ICE on gcc 4.6.3 and 4.8.2 with -pedantic. int main() { sizeof((int[]){}); return 0; } $ gcc --version gcc (GCC) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gcc -std=gnu99 -pedantic bug.c bug.c: In function ‘main’: bug.c:2:17: warning: ISO C forbids empty initializer braces [-Wpedantic] sizeof((int[]){}); ^ bug.c:2:3: internal compiler error: in build_compound_literal, at c/c-decl.c:4635 sizeof((int[]){}); ^