2 // { dg-do compile { target c++11 } }
4 template<int...> struct list;
6 template<int... Ns> struct impl {
7 static const int idx = 0;
8 using type = list<(idx + Ns)...>;
10 static constexpr const int* a[2] = {(Ns, &idx)...};
11 static_assert(a[0] == &idx && a[1] == &idx, "");
14 template struct impl<0, 1>;