https://issues.dlang.org/show_bug.cgi?id=23783
Issue ID: 23783
Summary: -preview=nosharedaccess does not detect comparison of
shared data
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
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.
--
