blob: 5f73eba8d6820976c33ef969b4682d98e9c983c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// { dg-options "-std=gnu++0x" }
template<typename T1, typename T2>
struct pair {};
template<typename... Args>
struct tuple {
static const int value = 0;
};
template<>
struct tuple<pair<int, float> > { };
template<typename... Outer>
struct X {
template<typename... Inner>
struct Y
{
typedef tuple<pair<Outer, Inner>...> type; // { dg-error "mismatched argument pack lengths" }
};
};
X<int, double>::Y<short, char, double>::type honk;
|