Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic183.C
blob27444ebb59455648d64cf8db016308753c8557b7
1 // PR c++/105956
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>;