Bug 22626 – Can't use synchronized member functions with -nosharedaccess
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2021-12-23T10:34:07Z
Last change time
2022-06-11T06:21:03Z
Keywords
pull
Assigned to
No Owner
Creator
Atila Neves
Comments
Comment #0 by atila.neves — 2021-12-23T10:34:07Z
-----
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`
Comment #1 by dlang-bot — 2022-05-19T12:06:50Z
@RazvanN7 created dlang/dmd pull request #14143 "Fix Issue 22626 - Can't use synchronized member functions with -nosharedaccess" fixing this issue:
- Fix Issue 22626 - Can't use synchronized member functions with -nosharedaccess
https://github.com/dlang/dmd/pull/14143
Comment #2 by dlang-bot — 2022-06-11T06:21:03Z
dlang/dmd pull request #14143 "Fix Issue 22626 - Can't use synchronized member functions with -nosharedaccess" was merged into master:
- 149977cfa5a9f4820fdf5cabaa3d46d2cb83e61d by RazvanN7:
Fix Issue 22626 - Can't use synchronized member functions with -nosharedaccess
https://github.com/dlang/dmd/pull/14143