r125070 - in /trunk/gcc: cp/ChangeLog cp/parser...
simartin@gcc.gnu.org
simartin@gcc.gnu.org
Fri May 25 20:26:00 GMT 2007
Author: simartin
Date: Fri May 25 20:26:36 2007
New Revision: 125070
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125070
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/parse/crash34.C
trunk/gcc/testsuite/g++.dg/parse/crash35.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list