https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66695
--- Comment #8 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Created attachment 45946 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45946&action=edit First step towards a patch Expect quite a few regressions, but this seems to do the trick for this PR and PR 77746 + PR 79485.