Fixes a regression introduced by r369999.
llvm-svn: 373022
if (!getDerived().AlwaysRebuild() &&
QualifierLoc == E->getQualifierLoc() &&
ND == E->getDecl() &&
+ Found == E->getFoundDecl() &&
NameInfo.getName() == E->getDecl()->getDeclName() &&
!E->hasExplicitTemplateArgs()) {
--- /dev/null
+// RUN: %clang_cc1 -std=c++2a -verify %s
+// expected-no-diagnostics
+
+namespace UsingInGenericLambda {
+ namespace a {
+ enum { b };
+ }
+ template<typename> void c() {
+ auto d = [](auto) {
+ using a::b;
+ (void)b;
+ };
+ d(0);
+ }
+ void e() { c<int>(); }
+}