https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95540
--- Comment #7 from Iain Sandoe <iains at gcc dot gnu.org> --- to summarise. This doesn't appear to be a bug in GCC (or clang) but something perhaps that could benefit from a clarifying note in the std?