https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64663
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 34484 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34484&action=edit gcc5-pr64663.patch Untested fix. Perhaps for the backport just the second hunk would be enough (plus testcase).