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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [partial13.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++/45012
2
 
3
template  struct enable_if;
4
 
5
template 
6
struct enable_if
7
{
8
  typedef T type;
9
};
10
 
11
enum { RUNTIME = 0 };
12
// it compiles with the previous line commented out and the next commented in
13
// static const int RUNTIME=0;
14
 
15
template  struct foo;
16
 
17
template  class V, int M>
18
struct foo,V, typename enable_if::type> {};
19
 
20
template  class V1, template class V2, int M>
21
struct foo,V2, typename enable_if::type> {};
22
 
23
template  struct bar {};
24
 
25
foo,bar<2> > x;

powered by: WebSVN 2.1.0

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