+2003-07-23 Nathan Sidwell <nathan@codesourcery.com>
+
+ PR c++/10953
+ * parser.c (cp_parser_nested_name_specifier): Reset scope on
+ failure.
+ (cp_parser_elaborated_type_specifier): Likewise.
+
2003-07-22 Mark Mitchell <mark@codesourcery.com>
Eliminate use of POINTER_TYPE for pointers-to-members.
if (!scope)
{
cp_parser_error (parser, "expected nested-name-specifier");
+ parser->scope = NULL_TREE;
return error_mark_node;
}
identifier = cp_parser_identifier (parser);
if (identifier == error_mark_node)
- return error_mark_node;
+ {
+ parser->scope = NULL_TREE;
+ return error_mark_node;
+ }
/* For a `typename', we needn't call xref_tag. */
if (tag_type == typename_type)
+2003-07-23 Nathan Sidwell <nathan@codesourcery.com>
+
+ * g++.dg/parse/crash10: New test.
+
2003-07-22 Nathan Sidwell <nathan@codesourcery.com>
* g++.dg/ext/flexary1.C: New test.
--- /dev/null
+// { dg-do compile }
+
+// Copyright (C) 2003 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 22 Jul 2003 <nathan@codesourcery.com>
+
+// PR c++ 10953. ICE
+
+class
+{
+ typename:: // { dg-error "" "" }
+; // { dg-error "" "" }