https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96300
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |manu at gcc dot gnu.org Status|UNCONFIRMED |NEW Last reconfirmed| |2020-07-29 --- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- This seems some kind of weird missed optimization because this variant does warn: struct S { int i; }; int g (int i, int yy) { struct S x, y={yy}, *p = i ? &x : &y; return p->i; // missing -Wuninitialized }