https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85765
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- But that patch is also on gcc-7-branch and the testcases work with gcc version 7.3.1 20180419, so there must have been something latent on trunk that was revealed by that change.