Command line: $ g++ testcase.C ----- testcase.C ----- template < typename > class A; template < typename T > A < T >::B::~B () {} ----------------------
Compiler output: $ g++ testcase.C testcase.C:2:25: error: 'A< <template-parameter-1-1> >::B' is not a type testcase.C:2:41: internal compiler error: tree check: expected identifier_node, have bit_not_expr in grokdeclarator, at cp/decl.c:8113 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r162222 - crash 4.4 r149995 - crash -- Summary: ICE: tree check: expected identifier_node, have bit_not_expr in grokdeclarator, at cp/decl.c:8113 on invalid code Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zsojka at seznam dot cz http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45043