summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/temp/temp.decls
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-08-06 16:20:37 +0000
committerDouglas Gregor <dgregor@apple.com>2009-08-06 16:20:37 +0000
commit15acfb9f501e047fb3791d8e3a2f2582541d3991 (patch)
tree6c83b49bf07fcef0a109b51e5e9370818e75ca40 /clang/test/CXX/temp/temp.decls
parenta7e2662770b9ccfc294b961e8b79a189d5224cb0 (diff)
downloadbcm5719-llvm-15acfb9f501e047fb3791d8e3a2f2582541d3991.tar.gz
bcm5719-llvm-15acfb9f501e047fb3791d8e3a2f2582541d3991.zip
When we encounter a dependent type that was parsed before we know that
we were going to enter into the scope of a class template or class template partial specialization, rebuild that type so that it can refer to members of the current instantiation, as in code like template<typename T> struct X { typedef T* pointer; pointer data(); }; template<typename T> typename X<T>::pointer X<T>::data() { ... } Without rebuilding the return type of this out-of-line definition, the canonical return type of the out-of-line definition (a TypenameType) will not match the canonical return type of the declaration (the canonical type of T*). llvm-svn: 78316
Diffstat (limited to 'clang/test/CXX/temp/temp.decls')
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp b/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp
index 1f2d7d5b9c9..fd3fb0bc7a7 100644
--- a/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp
+++ b/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp
@@ -1,5 +1,4 @@
// RUN: clang-cc -fsyntax-only -verify %s
-// XFAIL
template<typename T> struct X1 { };
OpenPOWER on IntegriCloud