[Issue 23783] New: -preview=nosharedaccess does not detect comparison of shared data

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 16 17:13:25 UTC 2023


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 at puremagic.com
          Reporter: nick at 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.

--


More information about the Digitalmars-d-bugs mailing list