https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102445 Bug 102445 depends on bug 89927, which changed state.
Bug 89927 Summary: Inconsistent behavior in std::regex when optimized https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89927 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED