https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 Bug 83819 depends on bug 92155, which changed state.
Bug 92155 Summary: strlen(a) not folded after memset(a, 0, sizeof a) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92155 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |DUPLICATE