blob: b6972896ecbf9922682276039c213c95af452895 [file] [log] [blame]
// PR c++/56464
// { dg-do run { target c++11 } }
struct bug { bug*a = [&]{ return [=]{return this;}(); }(); }; // { dg-warning "implicit capture" "" { target c++2a } }
int main()
{
bug b;
if (b.a != &b)
__builtin_abort ();
}