The testcase g++.old-deja/g++.pt/friend36.C ICEs on mainline: friend36.C: In instantiation of 'S<int>': friend36.C:12: instantiated from here friend36.C:9: error: redefinition of 'template<class T> void f(T)' friend36.C:4: error: 'template<class T> void f(T)' previously declared here friend36.C:9: internal compiler error: tree check: expected var_decl or function_decl or type_decl or template_decl, have error_mark in tsubst_friend_function, at cp/pt.c:5286 Please submit a full bug report, [etc.]
-- Summary: [4.2 regression] ICE in g++.old-deja/g++.pt/friend36.C Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery 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=26739