2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / scope-operator1.C
blobfde36f01ead9c1c835faf18e7171ff30ba79d626
1 /* PR c++/250 */
2 /* { dg-do compile } */
4 template <class T> void Bar(T *p)
7  
8 template <class T> class Foo
10 public:
11   Foo(T *p) { Bar(p); }
12   // The global scope operator wasn't respected in this case under gcc 3.0
13   void Bar(T *p) { ::Bar<T>(p); }
16 int main()
18   double* d;
19   Foo<double> f(d);