digitalmars.D.bugs - [Issue 23732] New: Cannot create shared instance of class with
- d-bugmail puremagic.com (20/20) Feb 22 2023 https://issues.dlang.org/show_bug.cgi?id=23732
https://issues.dlang.org/show_bug.cgi?id=23732 Issue ID: 23732 Summary: Cannot create shared instance of class with -preview=nosharedaccess Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: atila.neves gmail.com class Class {} void main() { auto b = new shared Class(); // Error: direct access to shared `new shared(Class)` is not allowed, see `core.atomic` } --
Feb 22 2023