Bug 23783 – -preview=nosharedaccess does not detect comparison of shared data
Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-03-16T17:13:25Z
Last change time
2023-04-01T22:15:13Z
Keywords
pull
Assigned to
No Owner
Creator
Nick Treleaven
Comments
Comment #0 by nick — 2023-03-16T17:13:25Z
shared int x = 3;
assert(x == 3);
bool b = x == 3;
int y = x; // error direct access not allowed
The `x == 3` expressions should error just like the last line does.
Comment #1 by dlang-bot — 2023-03-21T14:52:02Z
@RazvanN7 created dlang/dmd pull request #15017 "Fix Issue 23783 - -preview=nosharedaccess does not detect comparison of shared data" fixing this issue:
- Fix Issue 23783 - -preview=nosharedaccess does not detect comparison of shared data
https://github.com/dlang/dmd/pull/15017
Comment #2 by dlang-bot — 2023-03-21T23:05:10Z
dlang/dmd pull request #15017 "Fix Issue 23783 - -preview=nosharedaccess does not detect comparison of shared data" was merged into stable:
- 44262be482f439ca428254275374d242666c8913 by RazvanN7:
Fix Issue 23783 - -preview=nosharedaccess does not detect comparison of shared data
https://github.com/dlang/dmd/pull/15017
Comment #3 by dlang-bot — 2023-04-01T22:15:13Z
dlang/dmd pull request #15066 "merge stable" was merged into master:
- 37406ce453e38257cb047d63a5b148bc26f0ce4b by RazvanN7:
Fix Issue 23783 - -preview=nosharedaccess does not detect comparison of shared data
https://github.com/dlang/dmd/pull/15066