https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66459
Mikael Morin <mikael at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-06-08 CC| |mikael at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> --- Confirmed. Possibly related bug: PR60500 (In reply to Mario Baumann from comment #0) > - -O0 works fine This is expected, uninitializedness may only become apparent to the compiler after some optimization passes have simplified/reorganized the code.