int xs[5]; void fn() { for (int *p = &xs[0]; p < &xs[5]; p++) ; } Error: array index 5 is out of bounds `[0..5]`
@WalterBright created dlang/dmd pull request #13945 "fix Issue 22970 - importC: taking address one past array end gives bo…" fixing this issue: - fix Issue 22970 - importC: taking address one past array end gives bounds error https://github.com/dlang/dmd/pull/13945
dlang/dmd pull request #13945 "fix Issue 22970 - importC: taking address one past array end gives bo…" was merged into master: - 5f3ff498206df0439c1df79074f958bef777cd2f by Walter Bright: fix Issue 22970 - importC: taking address one past array end gives bounds error https://github.com/dlang/dmd/pull/13945