1 // "For each entity captured by copy, an unnamed non-static data member is
2 // declared in the closure type" -- test that there isn't a member of the
3 // closure with the same name as the captured variable.
5 // { dg-options -std=c++0x }
11 int f() { return this->i; } // { dg-error "" "no member named i" }
18 lam.i = 24; // { dg-error "" "no member named i" }
19 A<decltype(lam)> a(lam);