February 22, 2023 [Issue 23732] New: Cannot create shared instance of class with -preview=nosharedaccess | ||||
---|---|---|---|---|
| ||||
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` } -- |
Copyright © 1999-2021 by the D Language Foundation