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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [scope-operator1.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* PR c++/250 */
/* PR c++/250 */
/* { dg-do compile } */
/* { dg-do compile } */
template  void Bar(T *p)
template  void Bar(T *p)
{
{
}
}
template  class Foo
template  class Foo
{
{
public:
public:
  Foo(T *p) { Bar(p); }
  Foo(T *p) { Bar(p); }
  // The global scope operator wasn't respected in this case under gcc 3.0
  // The global scope operator wasn't respected in this case under gcc 3.0
  void Bar(T *p) { ::Bar(p); }
  void Bar(T *p) { ::Bar(p); }
};
};
int main()
int main()
{
{
  double* d;
  double* d;
  Foo f(d);
  Foo f(d);
}
}
 
 

powered by: WebSVN 2.1.0

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