This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36750] -Wmissing-field-initializers relaxation request
- From: "nico.schloemer at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 15 Aug 2015 12:46:49 +0000
- Subject: [Bug c/36750] -Wmissing-field-initializers relaxation request
- Auto-submitted: auto-generated
- References: <bug-36750-4 at http dot gcc dot gnu dot org/bugzilla/>
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.