Bug 19137 – D_BoundsChecks / D_NoBoundsChecks does not support -boundschecks=safeonly

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-08-03T04:31:47Z
Last change time
2024-12-13T19:00:05Z
Assigned to
No Owner
Creator
Mathias LANG
Moved to GitHub: dmd#19472 →

Comments

Comment #0 by pro.mathias.lang — 2018-08-03T04:31:47Z
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.
Comment #1 by slavo5150 — 2018-08-04T00:48:49Z
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.
Comment #2 by robert.schadek — 2024-12-13T19:00:05Z
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