The following invalid code snippet triggers an ICE since at least GCC 2.95.3:
====================== template<int> void foo(); struct A { typedef void foo<0>(); }; ====================== bug.cc:5: internal compiler error: tree check: expected identifier_node, have template_id_expr in grokfield, at cp/decl2.c:805 Please submit a full bug report, [etc.] -- Summary: ICE on invalid typedef Product: gcc Version: 4.2.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=28293