https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 Bug 83819 depends on bug 86937, which changed state.
Bug 86937 Summary: strnlen() of a conditional expression with constant operands not folded https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86937 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
