https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71444
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Fixed on gcc trunk. Assuming no problems show up this is suitable for backporting to the branches, so I'll leave the bug open for now.