digitalmars.D.bugs - [Issue 23783] New: -preview=nosharedaccess does not detect
- d-bugmail puremagic.com (20/20) Mar 16 2023 https://issues.dlang.org/show_bug.cgi?id=23783
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: nobody puremagic.com Reporter: nick geany.org 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. --
Mar 16 2023