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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [koenig3.C] - Rev 801

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

// PR c++/13157

namespace aa
{
  double abs(double);
  long double abs(long double);
}

namespace fu
{
  template <class T>
  struct X
  {};
  
  template <class T>
  X<T> test(X<T> x)
  {
    using ::aa::abs;
    return abs(x);
  }
  
  template <class T>
  X<T> abs(X<T>);
  
  X<int> x;
  X<int> z = test(x);
}

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.