https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 119154, which changed state.
Bug 119154 Summary: GCC 15.0 std module with <string> compiled with -O3 breaks when loaded with -O0 (not -O1, -O2 and -Ofast) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119154 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED