https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87640
--- Comment #6 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- Created attachment 44861 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44861&action=edit untested patch by Richard Biener As part of the discussion here: https://gcc.gnu.org/ml/gcc-patches/2018-10/msg01099.html ...Richard suggested the attached patch which fixes the PR. I will defer to him, as he seems to be working on this.