[Issue 22300] [REG 2.098-rc.2] `-checkaction=context` of a `shared` type with an `opCast` fails to compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 20 09:18:45 UTC 2021


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

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

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

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/druntime pull request #3594 "Fix 22300 - Use reinterpreting cast for
shared types during CTFE" was merged into stable:

- 54cc0705b6d412874087f79ba8e1c54042280397 by MoonlightSentinel:
  Fix 22300 - Use reinterpreting cast for shared types during CTFE

  Using the same method for compile- and runtime was enabled by
  dlang/dmd#13203. Using a reinterpreting cast avoids any potentially
  calling into user-defined `opCast` methods which might reject the cast.

https://github.com/dlang/druntime/pull/3594

--


More information about the Digitalmars-d-bugs mailing list