PR c++/67074 - namespace aliases
authorNathan Sidwell <nathan@acm.org>
Tue, 20 Jun 2017 12:53:11 +0000 (12:53 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 20 Jun 2017 12:53:11 +0000 (12:53 +0000)
commit71bbbd133f65c26f65709037401154362210560e
tree4d79c576c152bbe5c57dca0fa48467a3aec04c20
parent531f0b3879b09b53d738b5bf84790c49bdd60977
PR c++/67074 - namespace aliases

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.

From-SVN: r249408
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/pr67074.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/namespace-alias-1.C