r122962 - in /trunk/gcc: cp/ChangeLog cp/parser...
manu@gcc.gnu.org
manu@gcc.gnu.org
Thu Mar 15 22:45:00 GMT 2007
Author: manu
Date: Thu Mar 15 22:45:17 2007
New Revision: 122962
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122962
Log:
2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c++/30891
cp/
* parser.c (cp_parser_statement): If 'namespace' is found, this
only can be a namespace alias definition, so parse it now.
(cp_parser_namespace_alias_definition): if we find an open brace
instead of '=', then this is actually a misplaced namespace
definition.
testsuite/
* g++.dg/parse/namespace-definition.C: New.
Added:
trunk/gcc/testsuite/g++.dg/parse/namespace-definition.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list