https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 89367, which changed state.
Bug 89367 Summary: Constexpr expression is not constexpr in template, but is constexpr in non-template. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89367 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED