https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90668
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |alias, wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2019-05-31 CC| |rguenth at gcc dot gnu.org Blocks| |57359 Ever confirmed|0 |1 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Yes, that's arguably a bug, there's a duplicate about this, PR57359, which explains the complexity for retaining this optimizations (other compilers happily do as well, at least for PR57359). Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57359 [Bug 57359] store motion causes wrong code for union access at -O3