blob: 03a7a4bb60d0539ad13d23b9e8e98aae9f3591eb [file] [log] [blame]
// PR c++/47795
// { dg-do compile { target c++11 } }
class Klass
{
unsigned int local;
public:
bool dostuff();
};
bool Klass::dostuff()
{
auto f = []() -> bool {
if (local & 1) { return true; } // { dg-error "not captured" }
return false;
};
}
int main()
{
Klass c;
return 0;
}