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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [error3.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/47336
2
// { dg-options -std=c++0x }
3
 
4
template 
5
void g(T t)
6
{
7
  t+1;                          // { dg-error "no match" }
8
}
9
 
10
template 
11
class C
12
{
13
  struct D {} d;
14
public:
15
  decltype(g(d)) h()
16
  {
17
    return g(d);
18
  }
19
};
20
 
21
int main()
22
{
23
  C().h();
24
}

powered by: WebSVN 2.1.0

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