https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111841
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |98939 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- GCC does not implement https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1787r6.html (PR 98939) yet. I am 99% sure that paper is what causes this to be valid. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98939 [Bug 98939] [C++23] Implement P1787R6 "Declarations and where to find them"