1 // PR c++/55972 2 // { dg-do compile { target c++11 } } 3 4 class C 5 { 6 void f(); 7 int j = 10; 8 int i = [this]() { return this->j; }(); 9 }; 10