diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-03 15:37:31 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-03 15:37:31 +0000 |
commit | ae374759fce6c74d5be29dfe058d4a727154115c (patch) | |
tree | e6b2b71a1839d2bbfb0d5c14f9c02ef4327d7733 /test/SemaCXX/namespace-alias.cpp | |
parent | 6920cdce298ac9ba50dc7ebb7dea982a300b0664 (diff) |
When declaring a namespace alias, ignore previous declarations that
aren't in scope. Fixes PR7014.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102915 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, 10 insertions, 0 deletions
diff --git a/test/SemaCXX/namespace-alias.cpp b/test/SemaCXX/namespace-alias.cpp index 3ea1ccfd9f..1c3da3c656 100644 --- a/test/SemaCXX/namespace-alias.cpp +++ b/test/SemaCXX/namespace-alias.cpp @@ -91,3 +91,13 @@ namespace A = N; A::X nx; +namespace PR7014 { + namespace X + { + namespace Y {} + } + + using namespace X; + + namespace Y = X::Y; +} |