The following invalid code snippet triggers an ICE on mainline: =================== void foo(): { __FUNCTION__; } ===================
bug.cc: In function 'void foo()': bug.cc:2: error: only constructors take base initializers bug.cc:2: error: expected identifier before '{' token bug.cc:2: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x cc1plus: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] The regression was introduced between 2008-06-26 and 2008-07-05. -- Summary: [4.4 regression] ICE with __FUNCTION__ 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=37789