blob: 013ed5264eaf3c8073c2fb22d727e2a022d2185a [file] [log] [blame]
// PR c++/57526
// { dg-require-effective-target c++11 }
template<class T>
struct A
{
void bar( ) { }
void foo( )
{
auto* this_ptr = this;
auto lc = [&]( )
{
this_ptr->bar();
};
lc();
}
};
int main()
{
A<int> a;
a.foo();
}