https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63697
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 33851 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33851&action=edit gcc5-pr63697.patch Untested fix. This has been actually found by code inspection when working on a different patch.