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

--- Comment #5 from Atila Neves <[email protected]> ---
This is actually two bugs: creating a shared instance isn't possible with new,
but the bug description is still accurate since this doesn't compile:


class Class {}
void main() {
    shared Class c;
    synchronized(c) {}
}

% d.d(4): Error: direct access to shared `c` is not allowed, see `core.atomic`

--

Reply via email to