https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91606
--- Comment #6 from m.cencora at gmail dot com --- Just a wild guess, but maybe it is related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90858 and there it just manifests itself in compilation error because it is in constexpr context.