Another simple reproducer in this thread: EXCEPTION_ACCESS_VIOLATION on Windows but not MacOS - #16 by lewis
Seems worth an issue?
EDIT: is this the one, or is it too old? regression on inferring inbounds for `eachindex()` · Issue #45507 · JuliaLang/julia · GitHub _ No, that’s different and was actually fixed in 1.11.