https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397
--- Comment #8 from Steinar H. Gunderson <steinar+gcc at gunderson dot no> --- But all of those conditions include last_slash > path. I tried adding this just before the mem_strdupl() call: if (last_slash < path) { ib::fatal() << "Logic error."; __builtin_unreachable(); } and the warning still triggers.