[Issue 15256] Data races with arrays allowed in @safe code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 13 08:00:56 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #5 from RazvanN <razvan.nitu1305 at gmail.com> ---
If you compile with -preview=nosharedaccess than this code no longer compiles:
"Error: direct access to shared `s` is not allowed, see `core.atomic`". Closing
as WORKSFORME.

--


More information about the Digitalmars-d-bugs mailing list