------- Comment #2 from simartin at gcc dot gnu dot org 2007-05-25 20:27 ------- Subject: Bug 31745
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 <[EMAIL PROTECTED]> Manuel Lopez-Ibanez <[EMAIL PROTECTED]> 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 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31745
