https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80441
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |msebor at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- I assume the problem being reported here is the warning, with the expectation that the test case compile with no warnings. The manual says that -Wmissing-field-initializers will "Warn if a structure’s initializer has some fields missing. ... This option does not warn about designated initializers. ... This warning is included in -Wextra." The option also doesn't warn for zero-initialization (i.e., the initialization of a). The rationale for the warning is to help find missing initializers for newly added struct members. GCC behaves as intended here, thus resolving as Invalid.