On Tue, 22 Mar 2022, Marek Polacek via Gcc-patches wrote: > PR c/82283 > PR c/84685 > > gcc/c/ChangeLog: > > * c-typeck.cc (struct initializer_stack): Add 'designated' member. > (start_init): Set it. > (finish_init): Restore constructor_designated. > (push_init_level): Set constructor_designated to the value of > constructor_designated in the upper constructor_stack. > > gcc/testsuite/ChangeLog: > > * gcc.dg/Wmissing-field-initializers-1.c: New test. > * gcc.dg/Wmissing-field-initializers-2.c: New test. > * gcc.dg/Wmissing-field-initializers-3.c: New test. > * gcc.dg/Wmissing-field-initializers-4.c: New test. > * gcc.dg/Wmissing-field-initializers-5.c: New test.
OK. -- Joseph S. Myers jos...@codesourcery.com