The following invalid code snippet triggers an ICE since GCC 4.1.1: =============== void foo() = ===============
On the trunk I get: bug.cc:1: internal compiler error: in cp_lexer_consume_token, at cp/parser.c:637 Please submit a full bug report, [etc.] Before this was only an error-recovery bug: bug.cc:1: error: function 'void foo()' is initialized like a variable bug.cc:1: internal compiler error: in cp_lexer_consume_token, at cp/parser.c:638 Please submit a full bug report, [etc.] So it's a regression of a regression ;-) -- Summary: [4.2/4.3/4.4 regression] ICE with broken function declaration Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, 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=39053