March 16, 2023 [Issue 23783] New: -preview=nosharedaccess does not detect comparison of shared data | ||||
---|---|---|---|---|
| ||||
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. -- |
Copyright © 1999-2021 by the D Language Foundation