// PR c++/53484 // { dg-do compile { target c++11 } } template struct ST; template struct ST {}; template void f(T x){ [&]{ auto y = x; ST(); }(); } int main(){ f(0); }