From: Nathanael Nerode Date: Wed, 1 Jan 2003 12:54:09 +0000 (+0000) Subject: * g++.dg/lookup/scope-operator1.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6df507e8849c5b3ea326fe1e7905fe2743dd8a6;p=gcc.git * g++.dg/lookup/scope-operator1.C: New test. From-SVN: r60743 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5095a40ac49..a1ab8c959d8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 2003-01-01 Nathanael Nerode + * g++.dg/lookup/scope-operator1.C: New test. + * g++.dg/parse/operator1.C: New test. 2003-01-01 Kriang Lerdsuwanakij diff --git a/gcc/testsuite/g++.dg/lookup/scope-operator1.C b/gcc/testsuite/g++.dg/lookup/scope-operator1.C new file mode 100644 index 00000000000..fde36f01ead --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/scope-operator1.C @@ -0,0 +1,20 @@ +/* PR c++/250 */ +/* { dg-do compile } */ + +template void Bar(T *p) +{ +} + +template 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(p); } +}; + +int main() +{ + double* d; + Foo f(d); +}