[Bug c/36750] -Wmissing-field-initializers relaxation request

nico.schloemer at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Aug 15 12:46:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750

Nico <nico.schloemer at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nico.schloemer at gmail dot com

--- Comment #13 from Nico <nico.schloemer at gmail dot com> ---
Apparently, this got fixed for C++ somewhere inbetween GCC 4.9.2 and 5.1.1.
```
int main() {
struct S {
    int a;
    float b;
};

S s = {}; // identical to S s = {0, 0.0, std::string};
}
```
Compiled with `-Wextra`, the warning isn't present anymore for GCC 5.1.1.



More information about the Gcc-bugs mailing list