| 1 |
// PR c++/102870 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template <typename> struct integer_sequence; |
| 5 |
template <typename _Tp, _Tp _Num> |
| 6 |
using make_integer_sequence = integer_sequence<_Tp, __integer_pack(_Num)...>; |
| 7 |
template <long _Num> |
| 8 |
using make_index_sequence = make_integer_sequence<long, _Num>; |
| 9 |
template <class> struct Tuple; |
| 10 |
template <int... Is> using type = Tuple<make_index_sequence<Is>...>; |
| 11 |
template <int... Is> void f() { Tuple<type<Is>>{}; } // { dg-error "parameter packs not expanded" } |
| 12 |
int main() { f(); } |