]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/31745 (ICE on invalid use of namespace)
authorSimon Martin <simartin@users.sourceforge.net>
Fri, 25 May 2007 20:26:36 +0000 (20:26 +0000)
committerSimon Martin <simartin@gcc.gnu.org>
Fri, 25 May 2007 20:26:36 +0000 (20:26 +0000)
commit1094da913be99ab5768f3a37bb955ae60f85006d
tree1e64bb39a5081cc53752f25e2be1fe856894fd75
parenteb89f88cb853ff9e2604c9414360a312a39263ab
re PR c++/31745 (ICE on invalid use of namespace)

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.

Co-Authored-By: Lee Millward <lee.millward@gmail.com>
Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
From-SVN: r125070
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]