This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]