https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70317
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 38048 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38048&action=edit gcc6-pr70317.patch As this is a P1, if you meant something like this, I can test it tonight.