// PR c++/67244 // { dg-do compile { target c++11 } } class A { public: int operator*(); }; template void searchGen(int, int, T, Predicate p4) { p4(0); } template struct B; template struct B { static void exec() { MetaFunction::template exec; } }; template void forEachType() { B::exec; } namespace { struct C { template void exec() { A __trans_tmp_1; const auto target = *__trans_tmp_1; searchGen(0, 0, 0, [=](T) { [=] { target; }; }); } }; } void ____C_A_T_C_H____T_E_S_T____75() { forEachType; }