On Mon, Mar 25, 2024 at 01:39:39PM +0100, Stephan Bergmann wrote: > On 3/25/24 13:07, Jakub Jelinek wrote: > > On Mon, Mar 25, 2024 at 12:36:46PM +0100, Stephan Bergmann wrote: > > > This started to break > > > > > > > $ cat test.cc > > > > struct S1 { S1(); }; > > > > struct S2 { > > > > S2() {} > > > > S1 a[1] {}; > > > > }; > > > > > > > $ g++ -fsyntax-only test.cc > > > > test.cc: In constructor ‘S2::S2()’: > > > > test.cc:3:10: error: invalid initializer for array member ‘S1 S2::a [1]’ > > > > 3 | S2() {} > > > > | ^ > > > > https://gcc.gnu.org/PR114439 ? > > yes, sorry, missed that already-existing bugracker issue
I have a patch now, sorry about the breakage. I'm surprised we had no test covering this :(. Marek