Commit c6df507e by Nathanael Nerode

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

From-SVN: r60743
parent b9593599
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>
......
/* 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment