https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122226
--- Comment #2 from Matt Godbolt <matt at godbolt dot org> --- Thanks Andrew! I thought I was losing my mind, I figured some kind of aliasing analysis, or some other deep dark corner of the language (but the optimisation report didn't say anything about that). Thank you for the update, I may have missed an existing bug as I didn't suspect CSE.
