commit | 5cf8d67bc93050002c32d37e0d2fc8a3a500a7fa | [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 | a46ba05be611b6752ca86f21a0d5a91b7e8db4bd | |
parent | 95c70ec678b9584c7e7516d420b95176eb5a0e11 [diff] [blame] |
When declaring a namespace alias, ignore previous declarations that aren't in scope. Fixes PR7014. llvm-svn: 102915
diff --git a/clang/test/SemaCXX/namespace-alias.cpp b/clang/test/SemaCXX/namespace-alias.cpp index 3ea1ccf..1c3da3c 100644 --- a/clang/test/SemaCXX/namespace-alias.cpp +++ b/clang/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; +}