https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 Bug 83819 depends on bug 71304, which changed state.
Bug 71304 Summary: missing strlen optimizations after string truncation by assigning NUL https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71304 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED