I observe it on all version from 1.11 to nightly. Note that in my first post I called g with a range as second argument. With an integer there is indeed no bounds check.
We kept the checks cause they are functionally free in these operations (they usually lower to memcpy/memset) so there’s not much reason to take them out.
The overhead of a bounds check is really only visible if it affects automatic vectorization