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

kinke <ki...@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |ki...@gmx.net
         Resolution|FIXED                       |---

--- Comment #13 from kinke <ki...@gmx.net> ---
It does yield an lvalue now with v2.087, but a wrong one (temporary, I guess):

void main()
{
    const x = 0;
    const p = &x;
    (cast() x) = 5; // wrongly const-folded to 0 = 5
    assert(*p == 5); // fails, still 0
}

--

Reply via email to