2007-05-25 Simon Martin <simartin@users.sourceforge.net>
authorsimartin <simartin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 May 2007 20:26:36 +0000 (20:26 +0000)
committersimartin <simartin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 May 2007 20:26:36 +0000 (20:26 +0000)
commit9aad947b05a41449783d1cda7d14eb5f97277b55
tree1e64bb39a5081cc53752f25e2be1fe856894fd75
parent631f898f5280cf55e5bd848b6dead435ff83f010
2007-05-25  Simon Martin  <simartin@users.sourceforge.net>
    Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR c++/31745
* parser.c (cp_parser_skip_to_closing_brace): Return true if the next
token is a closing brace, false if there are no tokens left.
(cp_parser_namespace_alias_definition): Only consume the next token if
it is a closing brace.

* parser.c (cp_parser_class_specifier): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125070 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash34.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/crash35.C [new file with mode: 0644]