1 // PR c++/80864 2 // { dg-do compile { target c++11 } } 3 4 struct S {int a[2]; }; 5 struct A { S s[1]; }; 6 7 template <typename, int N> 8 struct R { static constexpr auto h = A{S{N}}; }; 9 10 template <typename, int N> 11 struct R2 { static constexpr auto h = A{S{{N, N}}}; }; 12 13 A foo = R<int, 10>::h; 14 A foo2 = R2<int, 10>::h; 15