The following invalid code snippet triggers an ICE on mainline: ======================================== void foo() { if (struct A{} ========================================
bug.cc: In function 'void foo()': bug.cc:3: error: types may not be defined in conditions bug.cc:3: error: expected unqualified-id at end of input bug.cc:3: internal compiler error: in cp_lexer_consume_token, at cp/parser.c:637 Please submit a full bug report, [etc.] -- Summary: [4.4 regression] ICE parsing broken code 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=38635