2 // { dg-do compile { target c++11 } }
4 template<class E, E V, int CNT>
7 template<E... Es> struct seq{};
9 template<int N, E... Es>
10 struct gen : gen<N - 1, V, Es...>{};
13 struct gen<0, Es...> : seq<Es...>{};
15 struct bits_t{ E e[CNT]; };
18 static bits_t init(seq<Es...>) {return {{Es...}};}
20 static bits_t init() {return init(gen<CNT>{});}
23 typedef seq_t<int, 123, 5> wow;