https://issues.dlang.org/show_bug.cgi?id=23709
RazvanN <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from RazvanN <[email protected]> --- Actually, the issue does not seem to have anything to do with synchronized (although, looking at the code it seems that Synchronized Statements have their own issues), but rather that you cannot create shared objects: class Class {} void main() { auto b = new shared Class(); // Error: direct access to shared `new shared(Class)` is not allowed, see `core.atomic` } This is ridiculous, so you can't create shared objects with new? --
