[Issue 19754] cast() sometimes yields lvalue, sometimes yields rvalue

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 25 09:46:15 UTC 2020


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

--- Comment #22 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #10124 "Fix Issue 19754 - Re-apply #9505 and fix it,
making isLvalue() logic more restrictive wrt. literals" was merged into master:

- 5b02408b35891643a2541e4ad52234b118bc9472 by Martin Kinkelin:
  Revert "Revert "Fix Issue 19754 - cast() sometimes yields lvalue, sometimes
yields rvalue""

  This reverts commit 0b4a3a31519159369fad8a727520de9ae5b78949.

- a47de9b85230da3fa9e3ac7b604c075e387532d1 by Martin Kinkelin:
  Respect `keepLvalue` when optimizing/const-folding a CastExp

  One aspect of issue 19754.

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

--


More information about the Digitalmars-d-bugs mailing list