https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91708
--- Comment #18 from Wilco <wilco at gcc dot gnu.org> --- (In reply to Richard Earnshaw from comment #17) > So do we have a testcase that shows the problem on older compilers? Yes, the same testcase shows the same incorrect substitution in older compilers. I tried GCC9, but the MEM to MEM change dates back much further.