1 2 3 4 5 6 7 8 9 10
/* { dg-options "-Wshadow" } */ struct A { void a1 () { struct B { B() {} }; // There should be no warning here. } void a2 () { struct B { }; } };