From df65c8ed2a2ff426a30f0dbac3ef3ea48a651627 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 28 Jul 2010 14:49:07 +0000 Subject: When a nested-name-specifier refers into a current instantiation that has dependent bases, construct a dependent nested-name-specifier rather than complaining that the name could not be found within the current instantiation itself. Fixes PR7725. llvm-svn: 109582 --- clang/test/SemaTemplate/nested-name-spec-template.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'clang/test/SemaTemplate/nested-name-spec-template.cpp') diff --git a/clang/test/SemaTemplate/nested-name-spec-template.cpp b/clang/test/SemaTemplate/nested-name-spec-template.cpp index 12ab4868091..9c72845fb6a 100644 --- a/clang/test/SemaTemplate/nested-name-spec-template.cpp +++ b/clang/test/SemaTemplate/nested-name-spec-template.cpp @@ -88,3 +88,14 @@ namespace PR7385 { has_xxx0::type t; // expected-note{{instantiation of}} } + +namespace PR7725 { + template struct TypedefProvider; + template + struct TemplateClass : public TypedefProvider + { + void PrintSelf() { + TemplateClass::Test::PrintSelf(); + } + }; +} -- cgit v1.2.3