https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113021
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like it is the uninitialized field pointer which is causing the issues. Looks like GCC does not currently fully support that for const variables inside a constexpr/consteval . The linked PRs are about string but I think the same issue shows up.