https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102876
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- It's not clear to me that this optimization should use the constexpr machinery; as I commented on bug 4131. If optimization turns the initialization of a static variable into a simple matter of storing a constant value, it should go one step further and turn that constant value into a constant initializer.