From 15acfb9f501e047fb3791d8e3a2f2582541d3991 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 6 Aug 2009 16:20:37 +0000 Subject: 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 struct X { typedef T* pointer; pointer data(); }; template typename X::pointer X::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 --- clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'clang/test/CXX/temp/temp.decls') 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 struct X1 { }; -- cgit v1.2.1