https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81768
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 42126 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42126&action=edit gcc8-pr81768-2.patch And an untested fix for the other reported bug.