* parser.c (cp_parser_declarator_id): Clear parser->scope.
PR c++/9639
* g++.dg/parse/crash1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64495
138bc75d-0d04-0410-961f-
82ee72b054a4
+2003-03-17 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/9639
+ * parser.c (cp_parser_declarator_id): Clear parser->scope.
+
2003-03-16 Jason Merrill <jason@redhat.com>
PR c++/9993
/* If the name was qualified, create a SCOPE_REF to represent
that. */
if (parser->scope)
- id_expression = build_nt (SCOPE_REF, parser->scope, id_expression);
+ {
+ id_expression = build_nt (SCOPE_REF, parser->scope, id_expression);
+ parser->scope = NULL_TREE;
+ }
return id_expression;
}
+2003-03-17 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/9639
+ * g++.dg/parse/crash1.C: New test.
+
2003-03-16 Mark Mitchell <mark@codesourcery.com>
PR c++/8805
--- /dev/null
+struct s { s(std::b o) { } }; // { dg-error "" }