https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40196
--- Comment #10 from Paul Thomas <pault at gcc dot gnu.org> --- Comment on attachment 44892 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44892 Patch for the PR As for things to be done: I forgot the placeholder in simplify_const_ref and the need for some modifications to simplify.c. A more elaborate testcase would be in order as well! Paul