------- Comment #2 from manu at gcc dot gnu dot org  2007-03-15 22:45 -------
Subject: Bug 30891

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  <[EMAIL PROTECTED]>

        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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30891

Reply via email to