[Bug middle-end/97931] missing -Wuninitialized initializing an aggregate member with itself

2020-11-24 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97931

--- Comment #3 from Martin Sebor  ---
-Winit-self isn't enabled by -Wall in C (to accommodate the 'int i = i;' hack)
so unless that changes I'd rather see it in -Wuninitialized (which is in -Wall
in all C languages).

[Bug middle-end/97931] missing -Wuninitialized initializing an aggregate member with itself

2020-11-23 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97931

Eric Gallager  changed:

   What|Removed |Added

 CC||egallager at gcc dot gnu.org

--- Comment #2 from Eric Gallager  ---
Shouldn't this go under -Winit-self?

[Bug middle-end/97931] missing -Wuninitialized initializing an aggregate member with itself

2020-11-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97931

Richard Biener  changed:

   What|Removed |Added

Version|unknown |11.0

--- Comment #1 from Richard Biener  ---
Probably because the FE emits a CONSTRUCTOR node were missing elements are
implicitely zero in GENERIC semantics, unless CONSTRUCTOR_NO_CLEARING is set.