// PR c++/50220 // { dg-do compile { target c++11 } } template struct Foobar {}; void foobar(const Foobar& obj) { [obj](){}(); }