[Bug c/120512] New: Wmissing-field-initializers mentions C++'s `{}` but that is also valid for C23 too
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 2 20:11:38 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120512
Bug ID: 120512
Summary: Wmissing-field-initializers mentions C++'s `{}` but
that is also valid for C23 too
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: documentation
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmissing-field-initializers
:
```
Likewise, in C++ this option does not warn about the empty { } initializer, for
example:
...
```
This should be expanded to mention C23.
More information about the Gcc-bugs
mailing list