Compiler output: $ gcc -fshort-enums testcase.c testcase.c: In function 'foo': testcase.c:12:29: warning: 'enum E' is promoted to 'int' when passed through '...' [enabled by default] testcase.c:12:29: note: (so you should pass 'int' not 'enum E' to 'va_arg') testcase.c:12:29: note: if this code is reached, the program will abort testcase.c:7:1: error: INDIRECT_REF in gimple IL e = *0B;
testcase.c:7:1: internal compiler error: verify_gimple failed Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r163636 - crash r161659 - crash r161170 - OK 4.5 r160526 - OK -- Summary: [4.6 Regression] ICE: verify_gimple failed: INDIRECT_REF in gimple IL with -fshort-enums and va_arg Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zsojka at seznam dot cz GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45461