// PR c++/78018 // { dg-do compile { target c++14 } } struct A { void f1(); template void f2(F f); template void f3(T t); }; struct B { template void f(L) { } }; void A::f1() { f2([&] (auto t) { f3(t); } ); } template void A::f2(F f) { B b; f(b); } template void A::f3(T t) { }