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.

llvm-svn: 131272
This commit is contained in:
Douglas Gregor 2011-05-13 00:34:01 +00:00
parent 662d91f1cd
commit a6a7e3c1f2
1 changed files with 4 additions and 0 deletions

View File

@ -1430,6 +1430,10 @@ struct DependencyChecker : RecursiveASTVisitor<DependencyChecker> {
} }
return super::VisitDeclRefExpr(E); return super::VisitDeclRefExpr(E);
} }
bool TraverseInjectedClassNameType(const InjectedClassNameType *T) {
return TraverseType(T->getInjectedSpecializationType());
}
}; };
} }