Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D_BoundsChecks / D_NoBoundsChecks does not support -boundschecks=safeonly #19472

Open
dlangBugzillaToGithub opened this issue Aug 3, 2018 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link

Mathias LANG (@Geod24) reported this on 2018-08-03T04:31:47Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=19137

CC List

  • Mike Franklin

Description

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.
@dlangBugzillaToGithub
Copy link
Author

slavo5150 commented on 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant