// PR c++/92024 // { dg-additional-options "-Wshadow=compatible-local" } template struct S { S () { struct c; { struct c {}; // { dg-warning "Wshadow=compatible-local" } } } }; S s;