Thread overview
[Issue 21402] Operator evaluation
Nov 18, 2020
Simen Kjaeraas
Dec 17, 2022
Iain Buclaw
November 18, 2020
https://issues.dlang.org/show_bug.cgi?id=21402

Simen Kjaeraas <simen.kjaras@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simen.kjaras@gmail.com

--- Comment #1 from Simen Kjaeraas <simen.kjaras@gmail.com> ---
This problem is worse than I expected. First I thought it was just a case of
(val ~= 7) not returning by reference (A). Boy was I wrong.

On Win10, dmd 2.094.0, -m32, I get [2,7,11] (B) - consistent with the above.
On run.dlang.io, dmd, I get [2,11,7] (C) - also consistent with (A), but not
with (B)
On Win10, dmd 2.094.0, -m64, I get [2,7,11,3] (D) - not consistent with A, B,
or C, but it's what we expect.

Turns out, 2.094.0 is no longer the newest version, so I updated to 2.094.1, and I get the same behavior with both -m32 and -m64 as I used to get with -m64.

run.dlang.org reports its version as 2.093 for dmd, dmd-beta, ldc-beta and ldc, and 2.091 for dmd-nightly. ldc and ldc-beta give the expected result of [2,7,11,3].

So... it's fixed?

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=21402

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=21402

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19826

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--