https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111122
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Try from inside a function instead. There is another bug about local Temps used from constexpr from a non-function scope causinbissues.