https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82307
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- The bug status was changed to NEW, that means it's been confirmed as a GCC bug that should be fixed. Richard was noting for other people's benefit that Clang accepts the code.