https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68567
--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- For the record, the tests in comment 1 compile without ICE since GCC6. Unless someone beats me, I am planning to package the patch in comment 4 and submit it to the mailing lists.