// { dg-additional-options "-Wshadow=compatible-local" } // pr c++/82424 we were trying to convert between dependent types. template class a { struct b; template void c (); }; template template void a::c () { typedef typename T::b b; // Don't go looking inside the typename T thing; { T thing; // { dg-warning "shadows a previous local" } } }