Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/lookup/scope-operator1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR c++/250 */ /* { dg-do compile } */ template <class T> void Bar(T *p) { } template <class T> class Foo { public: Foo(T *p) { Bar(p); } // The global scope operator wasn't respected in this case under gcc 3.0 void Bar(T *p) { ::Bar<T>(p); } }; int main() { double* d; Foo<double> f(d); }