re PR c++/46868 (ICE: SIGSEGV splay_tree_splay (splay-tree.c:149) on invalid code)
authorNathan Froyd <froydnj@codesourcery.com>
Wed, 23 Feb 2011 16:44:18 +0000 (16:44 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Wed, 23 Feb 2011 16:44:18 +0000 (16:44 +0000)
commit9113b9fb6d0a11590e479d694552782310703902
treef432a161e71a5f35dbc1eab3777bf3ba35d731c0
parentc70c034251ce49cb008d344c504ee086c6105af9
re PR c++/46868 (ICE: SIGSEGV splay_tree_splay (splay-tree.c:149) on invalid code)

fix PR c++/46868
gcc/cp/
PR c++/46868
* parser.c (cp_parser_class_specifier): Require a closing brace
to attempt error recovery.

gcc/testsuite/
PR c++/46868
* g++.dg/pr46868.C: New test.
* g++.dg/parse/parameter-declaration-1.C: Adjust.
* g++.dg/parse/error14.C: Adjust.

From-SVN: r170440
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error14.C
gcc/testsuite/g++.dg/parse/parameter-declaration-1.C
gcc/testsuite/g++.dg/pr46868.C [new file with mode: 0644]