// PR c++/100608 // { dg-do compile { target c++11 } } // { dg-additional-options "-Wshadow=compatible-local" } template class X {}; void foo() { auto a = X{}; // no warning, not compatible }