[Issue 14364] DMD should compile (correctly) SDC test0167.d

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Apr 5 21:26:33 PDT 2015


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

--- Comment #9 from deadalnix <deadalnix at gmail.com> ---
Update :

It turns out DMD has the intended behavior. However, the spec need to be fixed.

a += b do not decay as a = cast(typeof(a)) (a + b) but as :

((ref i, auto ref j) => i = cast(typeof(i)) (i + j))(a, b);

--


More information about the Digitalmars-d-bugs mailing list