https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87485
--- Comment #20 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 45583 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45583&action=edit gcc9-pr87485.patch So like this (untested so far except for the testcase)?