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] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/48261
2
 
3
typedef double (*gaddType)(double,double);
4
struct Foo2
5
{
6
  static gaddType add;
7
};
8
 
9
template
10
struct Something
11
{
12
  void work()
13
  {
14
    double x=T::template add(5.0,6.0); // { dg-error "add" }
15
  }
16
};
17
 
18
int main()
19
{
20
  Something s2;
21
  s2.work();
22
}

powered by: WebSVN 2.1.0

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