// PR c++/61362 // { dg-do compile { target c++11 } } template struct S { int f{[this](){return 42;}()}; }; int main(){ return S{}.f; // should be 42 }