https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118158
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >Is there a reason for this limitation? Yes the original C++20 standard was written that way but was changed by LWG DR 2937 : https://cplusplus.github.io/LWG/issue2937 .