https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108561
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- That changed with https://cplusplus.github.io/LWG/issue581 which I implemented for GCC 12 in r12-1817-gf8c5b542f6cb6a so I guess you're looking at gcc-11 or older.