[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
Tue Oct 19 13:00:13 UTC 2021


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

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/dmd pull request #13203 "Issue 22300 - Allow
shared <-> unshared reinterpreting casts during CTFE" mentioning this issue:

- Issue 22300 - Allow shared <-> unshared reinterpreting casts during CTFE

  CTFE evaluation is single threaded only, hence it's safe to discard the
  `shared` qualifier in a reinterpreting cast.

  This change allows `-checkaction=context` to use a reinterpreting cast
  for compile and runtime - which removes the problematic workaround
  that caused the regression.

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

--


More information about the Digitalmars-d-bugs mailing list