When a program is compiled with `-boundschecks=safeonly`, `D_NoBoundsChecks` is *not* defined, but bounds check is turned off in non-safe code, which might break some assumption, e.g. in `@trusted` code.
I'm not sure how this is supposed to work, but it seems to me we need both a `D_BoundsCheck` and a `D_SafeBoundsCheck` version identifier.
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19472 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB