diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-26 22:59:39 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-26 22:59:39 +0000 |
commit | c67b03260dbf4127e09b03302ff844a24e41394f (patch) | |
tree | 1ff01785612582e7f1b799aa8d34288994d36841 /test/SemaCXX/namespace-alias.cpp | |
parent | cfd8ea930a119dc8a1e9a343d2a5cfe142b3d964 (diff) |
Compare namespaces properly when looking for redeclarations of
namespace aliases. Fixes PR6341.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/namespace-alias.cpp')
-rw-r--r-- | test/SemaCXX/namespace-alias.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/SemaCXX/namespace-alias.cpp b/test/SemaCXX/namespace-alias.cpp index 06114c34cc..3ea1ccfd9f 100644 --- a/test/SemaCXX/namespace-alias.cpp +++ b/test/SemaCXX/namespace-alias.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -namespace N { }; +namespace N { struct X { }; }; namespace A = N; @@ -83,3 +83,11 @@ namespace K { KC::func(); // expected-error {{undeclared identifier 'KC'}} } } + +// PR6341 +namespace A = N; +namespace N { } +namespace A = N; + +A::X nx; + |