summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/temp/temp.decls
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-08-27 06:03:53 +0000
committerDouglas Gregor <dgregor@apple.com>2009-08-27 06:03:53 +0000
commite985a3b724af586ff6c2174293ebca51a43018e8 (patch)
treed26d6bb95786b95ebf1358edc0cb8383d18a97ea /clang/test/CXX/temp/temp.decls
parent35d6e3e710a8dae53d93ecf52200da47c5c9a07a (diff)
downloadbcm5719-llvm-e985a3b724af586ff6c2174293ebca51a43018e8.tar.gz
bcm5719-llvm-e985a3b724af586ff6c2174293ebca51a43018e8.zip
When checking whether one declaration context encloses another, make sure to look at the primary contexts. Thanks to Eli for the test case
llvm-svn: 80212
Diffstat (limited to 'clang/test/CXX/temp/temp.decls')
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1.cpp b/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1.cpp
index 28a5d985407..725b61c2716 100644
--- a/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1.cpp
+++ b/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1.cpp
@@ -63,3 +63,6 @@ template<typename T, typename U>
X0<T, U>::operator T*() const {
return &value;
}
+
+namespace N { template <class X> class A {void a();}; }
+namespace N { template <class X> void A<X>::a() {} }
OpenPOWER on IntegriCloud