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