[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
Thu Oct 21 21:39:26 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22300
--- Comment #5 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #13209 "Merge stable into master" was merged into
master:
- 7f9ce4504af4cf08569493c1756a70b3f2faaaf9 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/13209
--
More information about the Digitalmars-d-bugs
mailing list