https://godbolt.org
template <int... VALUES>
struct C {
static constexpr int VALUEARRAY[] = {VALUES...};
};
static_assert(C<0,1,2,3,4>::VALUEARRAY[4] == 4);
clang needs the hint of sizeof...(VALUES) to build correctly, while GCC and MSVC compile without error.