PR c++/28269
* parser.c (cp_parser_elaborated_type_specifier):
Return early if an invalid type was detected.
* g++.dg/template/crash54.C: New test.
From-SVN: r115475
type not being an acceptable Java parameter if
it's error_mark_node.
+ PR c++/28269
+ * parser.c (cp_parser_elaborated_type_specifier):
+ Return early if an invalid type was detected.
+
2006-07-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/28249
}
}
+ if (type == error_mark_node)
+ return error_mark_node;
+
/* Allow attributes on forward declarations of classes. */
if (attributes)
{
PR c++/28292
* g++.dg/other/error12.C: New test.
+
+ PR c++/28269
+ * g++.dg/template/crash54.C: New test.
2006-07-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
--- /dev/null
+//PR c++/28269
+
+template<int> struct A;
+
+struct __attribute__((unused)) A<0<; // { dg-error "template argument|unqualified-id" }