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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [ttp9.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Origin: David Abrahams 
4
//         Wolfgang Bangerth 
5
 
6
// PR c++/12170: Deducing template template parameter from nested
7
// class template.
8
 
9
template  struct W {};
10
 
11
template< template class F, typename T>
12
int foo(W< F >);
13
 
14
 
15
template
16
struct L  {
17
    static int const value = sizeof(foo(W()));
18
    typedef T type;
19
};
20
 
21
 
22
template 
23
struct Y {
24
    template  struct X { typedef int type; };
25
    typedef typename L >::type type;
26
};
27
 
28
template struct Y;

powered by: WebSVN 2.1.0

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