The following invalid code snippets triggers an ICE since GCC 4.3.0: ================================= void foo() { ({ i; ({ i; }); 0; }); } =================================
bug.cc: In function 'void foo()': bug.cc:3: error: 'i' was not declared in this scope gimplification failed: <statement_list 0x402277c4 type <void_type 0x401a94e0 void VOID align 8 symtab 0 alias set -1 canonical type 0x401a94e0 pointer_to_this <pointer_type 0x401a9548>> head (nil) tail (nil) stmts > bug.cc:3: internal compiler error: gimplification failed Please submit a full bug report, [etc.] -- Summary: [4.3/4.4 regression] ICE with undefined variable in statement expression Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35747