// PR c++/51723 // { dg-do compile { target c++11 } } template struct A { static constexpr int a[sizeof...(V)] = { V... }; }; template constexpr int A::a[]; struct B { const int* const b; template constexpr B(const int(&b)[N]) : b(b) { } template constexpr B(A) : B(A::a) { } }; constexpr B b1 = A<10, 20, 30>::a; constexpr B b2 = A<10, 20, 30>();