1 // PR c++/56100 2 // { dg-options "-Wshadow" } 3 4 struct bar 5 { 6 template <typename T> bazbar7 void baz () { int foo; } 8 }; 9 10 int foo; 11 main()12 int main () 13 { 14 bar ().baz <int> (); 15 } 16