https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114242
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note IIRC C++26 (maybe even 23) changed in this area over C++20 and GCC is following (the initial?) C++20 rules.
pinskia at gcc dot gnu.org via Gcc-bugs Tue, 05 Mar 2024 10:15:03 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114242
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note IIRC C++26 (maybe even 23) changed in this area over C++20 and GCC is following (the initial?) C++20 rules.