1 2 3 4 5 6 7 8 9 10
// { dg-options "-std=c++11 -Wshadow" } struct A { int i; void f() { [=]{ int i; }; // { dg-warning "shadows" } } };