// { dg-do compile { target c++11 } } template void Foo(T) { struct X {}; } template void f(const U&) { auto g = [] () {}; }