D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19137 - D_BoundsChecks / D_NoBoundsChecks does not support -boundschecks=safeonly
Summary: D_BoundsChecks / D_NoBoundsChecks does not support -boundschecks=safeonly
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-03 04:31 UTC by Mathias LANG
Modified: 2024-12-13 19:00 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Mathias LANG 2018-08-03 04:31:47 UTC
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 Mike Franklin 2018-08-04 00:48:49 UTC
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 dlangBugzillaToGithub 2024-12-13 19:00:05 UTC
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