1 // PR c++/50089 2 // { dg-do compile { target c++11 } } 3 4 struct TestBase 5 { fooTestBase6 void foo() {} 7 }; 8 9 struct Test : TestBase 10 { fooTest11 void foo() 12 { 13 [this]{ 14 /*this->*/TestBase::foo(); // ICE without this-> 15 }(); 16 } 17 }; 18