diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-03-15 22:45:17 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-03-15 22:45:17 +0000 |
commit | 2ce88bea6d9c7d451c9f2f5eda2f91de7884da65 (patch) | |
tree | 9ad6ddd1ac48e6d49a9f4b8b3b4912f4dbe71d00 /gcc/tree-ssa-loop-niter.c | |
parent | 9b439fe168ff6dacb3aa606f43a2103b68b89ded (diff) | |
download | gcc-2ce88bea6d9c7d451c9f2f5eda2f91de7884da65.zip gcc-2ce88bea6d9c7d451c9f2f5eda2f91de7884da65.tar.gz gcc-2ce88bea6d9c7d451c9f2f5eda2f91de7884da65.tar.bz2 |
re PR c++/30891 (poor diagnostic with namespace in the function scope)
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.
From-SVN: r122962
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
0 files changed, 0 insertions, 0 deletions