1 // PR c++/79681 2 // { dg-do compile { target c++14 } } 3 // { dg-options "-O2" } 4 5 struct A 6 { 7 int i : 4; 8 }; 9 10 constexpr bool foo()11 foo () 12 { 13 A x[] = { 1 }; 14 return x[0].i; 15 } 16 17 static_assert (foo(), ""); 18