[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 08:39:47 UTC 2021


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

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

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

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/druntime pull request #3594 "purge changelog"
fixing this issue:

- 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