aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic139.C
blob: a1c64f30f6c279be81302bfbf9309b49ad9f3b98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Origin: PR c++/53609
// { dg-do compile { target c++11 } }

template<class...I> struct List {};
template<int T> struct Z {static const int value = T;};
template<int...T> using LZ = List<Z<T>...>;

template<class...U>
struct F
{
  using N = LZ<U::value...>;
};

F<Z<1>, Z<2> >::N A;