www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22626] New: Can't use synchronized member functions with

https://issues.dlang.org/show_bug.cgi?id=22626

          Issue ID: 22626
           Summary: Can't use synchronized member functions with
                    -nosharedaccess
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: atila.neves gmail.com

-----
class Oops {
    synchronized void oops() {}
}
-----
% dmd -o- -preview=nosharedaccess d.d
d.d(2): Error: direct access to shared `this` is not allowed, see `core.atomic`

--
Dec 23 2021