This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r249408 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
- From: nathan at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 20 Jun 2017 12:53:12 -0000
- Subject: r249408 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
Author: nathan
Date: Tue Jun 20 12:53:11 2017
New Revision: 249408
URL: https://gcc.gnu.org/viewcvs?rev=249408&root=gcc&view=rev
Log:
PR c++/67074 - namespace aliases
* decl.c (duplicate_decls): Don't error here on mismatched
namespace alias.
* name-lookup.c (name_lookup::add_value): Matching namespaces are
not ambiguous.
(diagnose_name_conflict): Namespaces are never redeclarations.
(update_binding): An alias can match a real namespace.
PR c++/67074
* g++.dg/lookup/pr67074.C: New.
* g++.dg/parse/namespace-alias-1.C: Adjust.
Added:
trunk/gcc/testsuite/g++.dg/lookup/pr67074.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/name-lookup.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/parse/namespace-alias-1.C