blob: 4a935b367d6577d0c29838ffef9493acf1958f6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// { dg-options "-std=c++0x" }
template<typename Fun, typename... Args> // { dg-error "template parameter" }
struct call;
template<typename Fun, typename Arg0>
struct call // { dg-error "redeclared here" }
{
template<typename Sig>
struct result;
template<typename X, typename Y>
struct result<X(Y)>
{
typedef X type;
};
};
template<typename Fun, int... N> // { dg-error "template parameter" }
struct call2;
template<typename Fun, int N>
struct call2 // { dg-error "redeclared here" }
{
template<typename Sig>
struct result;
template<typename X, typename Y>
struct result<X(Y)>
{
typedef X type;
};
};
template<typename Fun, template<typename> class... TT> // { dg-error "template parameter" }
struct call3;
template<typename Fun, template<typename> class TT>
struct call3 // { dg-error "redeclared here" }
{
template<typename Sig>
struct result;
template<typename X, typename Y>
struct result<X(Y)>
{
typedef X type;
};
};
|