OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [scope-operator1.C] - Rev 718

Go to most recent revision | Compare with Previous | Blame | View Log

/* 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);
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.