* g++.dg/lookup/scope-operator1.C: New test.

From-SVN: r60743
This commit is contained in:
Nathanael Nerode 2003-01-01 12:54:09 +00:00
parent b959359931
commit c6df507e88
2 changed files with 22 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2003-01-01 Nathanael Nerode <neroden@gcc.gnu.org>
* g++.dg/lookup/scope-operator1.C: New test.
* g++.dg/parse/operator1.C: New test.
2003-01-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>

View File

@ -0,0 +1,20 @@
/* 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);
}