https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71183
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 38691 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38691&action=edit gcc7-pr71183.patch Not fundamentally flawed, just one line omitted. Untested patch that should fix this.