Thread overview
[Issue 23639] Casting to shared not allowed with -preview=nosharedaccess
Jan 18, 2023
RazvanN
Jan 18, 2023
RazvanN
Jan 18, 2023
Dlang Bot
Jan 20, 2023
Dlang Bot
January 18, 2023
https://issues.dlang.org/show_bug.cgi?id=23639

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
This is blocking the templatization of the _d_new_class druntime hook.

--
January 18, 2023
https://issues.dlang.org/show_bug.cgi?id=23639

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
Update, the problem is not the casting. Casting is fine. The problem is the fact that the result of the cast is a shared expression that is returned, therefore it needs to be synchronized.

--
January 18, 2023
https://issues.dlang.org/show_bug.cgi?id=23639

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@RazvanN7 created dlang/dmd pull request #14836 "Fix Issue 23639 - Casting to shared not allowed with -preview=nosharedaccess" fixing this issue:

- Fix Issue 23639 - Casting to shared not allowed with -preview=nosharedaccess

https://github.com/dlang/dmd/pull/14836

--
January 20, 2023
https://issues.dlang.org/show_bug.cgi?id=23639

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14836 "Fix Issue 23639 - Casting to shared not allowed with -preview=nosharedaccess" was merged into master:

- a799c1b59ea617c0237f30ada65438a8a6d05657 by RazvanN7:
  Fix Issue 23639 - Casting to shared not allowed with -preview=nosharedaccess

https://github.com/dlang/dmd/pull/14836

--