https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 117255, which changed state.
Bug 117255 Summary: There is a core language undefined behavior in the constexpr function, but GCC did not report the error https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117255 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE