parser.c (cp_parser_nested_name_specifier): Reset scope on failure.
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 23 Jul 2003 13:02:34 +0000 (13:02 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 23 Jul 2003 13:02:34 +0000 (13:02 +0000)
commiteb5abb3944f7f65f527cd2acbde984608cf54305
tree235391fad97f06533d06f5c69db9ab720c42b930
parente1a4d10fc073997cf9d6abc835d295e50e92f770
parser.c (cp_parser_nested_name_specifier): Reset scope on failure.

cp:
* parser.c (cp_parser_nested_name_specifier): Reset scope on
failure.
(cp_parser_elaborated_type_specifier): Likewise.
testsuite:
* g++.dg/parse/crash10: New test.

From-SVN: r69702
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash10.C [new file with mode: 0644]