https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89546
--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> --- Created attachment 45964 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45964&action=edit x86_64 testcase It took me four or five evenings and is quite fragile, but finally I have an x86_64-linux testcase that triggers the miscompilation (so this really should be P1). The correct fix is the one from my previous comment, I'll prepare a proper patch tomorrow.