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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Contributed by Dodji Seketeli 
2
// Origin: PR c++/41785
3
// { dg-options -std=c++0x }
4
 
5
struct a {};
6
 
7
template < typename T, typename ENCLOSING >
8
struct base;
9
 
10
template < typename... T >
11
struct derived
12
  : public base< T, derived< T... > >...
13
{};
14
 
15
template < typename... T>
16
struct base< a, derived< T... > >
17
{
18
  typedef derived< T... >
19
          Derived;
20
};
21
 
22
int main()
23
{
24
  derived< a > instance;
25
}
26
 

powered by: WebSVN 2.1.0

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