https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70633
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 38246 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38246&action=edit gcc6-pr70633.patch Untested fix. This works for me, but Richard, if you have a different patch already in testing or if you think this is bad approach, I'll leave it to you.