From: Douglas Gregor Date: Fri, 13 May 2011 00:34:01 +0000 (+0000) Subject: Teach the template parameter dependency checker used when matching X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18c8339978dabbf1517bfcc4898e8b8c8069283c;p=clang Teach the template parameter dependency checker used when matching template parameter lists to scope specifiers for friend declarations about injected class name types. Fixes the g++.dg/template/memfriend5.C regression in the GCC testsuite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131272 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 5d93067a95..58c12d4c75 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -1430,6 +1430,10 @@ struct DependencyChecker : RecursiveASTVisitor { } return super::VisitDeclRefExpr(E); } + + bool TraverseInjectedClassNameType(const InjectedClassNameType *T) { + return TraverseType(T->getInjectedSpecializationType()); + } }; }