1 /* PR c++/250 */ 2 /* { dg-do compile } */ 3 Bar(T * p)4template <class T> void Bar(T *p) 5 { 6 } 7 8 template <class T> class Foo 9 { 10 public: Foo(T * p)11 Foo(T *p) { Bar(p); } 12 // The global scope operator wasn't respected in this case under gcc 3.0 Bar(T * p)13 void Bar(T *p) { ::Bar<T>(p); } 14 }; 15 main()16int main() 17 { 18 double* d; 19 Foo<double> f(d); 20 } 21