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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/35146
2
 
3
template  struct S {};
4
 
5
template  struct ref;
6
template <>           struct ref { typedef double result; };
7
 
8
template 
9
void foo(typename ref::result, S*);
10
template <>
11
void foo(S,               S*); // { dg-error "does not match" }
12
template <>
13
void foo(double alpha,            S* x)
14
{
15
  alpha; x;
16
}

powered by: WebSVN 2.1.0

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