commit | ae374759fce6c74d5be29dfe058d4a727154115c | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Mon May 03 15:37:31 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Mon May 03 15:37:31 2010 +0000 |
tree | e6b2b71a1839d2bbfb0d5c14f9c02ef4327d7733 | |
parent | 6920cdce298ac9ba50dc7ebb7dea982a300b0664 [diff] [blame] |
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
diff --git a/test/SemaCXX/namespace-alias.cpp b/test/SemaCXX/namespace-alias.cpp index 3ea1ccf..1c3da3c 100644 --- a/test/SemaCXX/namespace-alias.cpp +++ b/test/SemaCXX/namespace-alias.cpp
@@ -91,3 +91,13 @@ A::X nx; +namespace PR7014 { + namespace X + { + namespace Y {} + } + + using namespace X; + + namespace Y = X::Y; +}