The following invalid code snippet triggers an ICE on mainline: ======================== struct A { void foo(); };
typedef void (A::T)(); void bar(T); void baz() { bar(&A::foo); } ======================== bug.cc:6: error: typedef name may not be a nested-name-specifier bug.cc:8: error: parameter '<anonymous>' invalidly declared method type bug.cc: In function 'void baz()': bug.cc:12: internal compiler error: canonical types differ for identical types void (A::*)() and void (A::*)() Please submit a full bug report, [etc.] The regression appeared between 2008-07-29 and 2008-08-23. The bug is related to PR37555, but a more recent regression. -- Summary: [4.4 regression] ICE with invalid typedef 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=37556