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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [template-id-3.C] - Rev 693

Compare with Previous | Blame | View Log

// PR c++/48261

typedef double (*gaddType)(double,double);
struct Foo2
{
  static gaddType add;
};

template<typename T>
struct Something
{
  void work()
  {
    double x=T::template add<double>(5.0,6.0); // { dg-error "add" }
  }
};

int main()
{
  Something<Foo2> s2;
  s2.work();
}

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.