[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 03:48:07 UTC 2021


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

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #13203 "Issue 22300 - Allow shared <-> unshared
reinterpreting casts during CTFE" was merged into stable:

- 80a4215978914d1860263da89884e6799679b36e by MoonlightSentinel:
  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