Skip to content

[spec] @safe code generated must not assume null dereference won't occur #4240

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

Open
ntrel opened this issue May 4, 2025 · 0 comments · May be fixed by #4239
Open

[spec] @safe code generated must not assume null dereference won't occur #4240

ntrel opened this issue May 4, 2025 · 0 comments · May be fixed by #4239

Comments

@ntrel
Copy link
Contributor

ntrel commented May 4, 2025

Walter from https://forum.dlang.org/post/[email protected]:

D relies on the null dereference not being "optimized away". Maybe there's a switch for that on ldc, there should be if there isn't one.

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

Successfully merging a pull request may close this issue.

1 participant