https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116034
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2024-07-22 Target Milestone|--- |12.5 Summary|wrong code with memcpy() |[12/13/14/15 Regression] |from _Complex unsigned |wrong code with memcpy() |short at |from _Complex unsigned |-fno-strict-aliasing -O1 |short at |and above |-fno-strict-aliasing -O1 | |and above --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Looks like the code that folds MEM[(charD.10 * {ref-all})&cD.2326 + 1B] into REAL/IMAG is going wrong and should not have folded it into that. I have not looked into why though.