1 // { dg-do assemble } 2 // { dg-options "-Wshadow" } 3 // GROUPS passed shadow-warnings 4 // (Message bugs/shadow:2) 5 // From: michael@utex.rni.sub.org (Michael Utech) 6 // Date: Sat, 22 Jan 1994 04:28:00 +0100 7 // Subject: very minor problem/bug in gcc-2.5.4, -Wshadow 8 // Message-ID: <m0pNZ1T-0008QUC@utex.rni.sub.org> 9 10 class X 11 { 12 int count; 13 public: X()14 X() {} // necessary to produce the `count' warning 15 }; 16 17 template <class T> 18 class Y 19 { 20 T t; 21 public: f(int count)22 int f (int count) { return (count); } 23 }; 24 25 int main()26main () 27 { 28 Y<char> y; 29 return 0; 30 } 31