blob: aaa80f47000602ae89a4ea23f2ce1e46f1e02287 [file] [log] [blame]
// PR c++/53158
// { dg-do compile { target c++11 } }
int main()
{
auto a = []() { return true; };
auto b = []() { return a(); }; // { dg-error "'a' is not captured" }
int c, d;
while (b() && c < d) // { dg-error "could not convert" }
{
}
}