https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105491 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- The constexpr rules in C++11 are much stricter, this is probably user error (i.e. C++20 constinit can't be used here).