https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77333
--- Comment #20 from Martin Jambor <jamborm at gcc dot gnu.org> --- Created attachment 40864 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40864&action=edit A small self-contained testcase I have finally managed to put together a small self-contained testcase. Compile with -O2 -fno-ipa-sra to trigger the bug (under Wine), add -fno-ipa-cp to make it disappear.