// PR c++/53741 // { dg-do compile { target c++11 } } struct X { template static void bar() {} template void foo(T p) { [&] { bar(); }; } }; int main() { X x; x.foo(3); }