[Issue 17406] int var = 10; write(--var,' ',var^^2); //output: 9 100 //NOT: 9 81

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu May 18 08:16:41 PDT 2017


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

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ag0aep6g at gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #1 from ag0aep6g at gmail.com ---
Works correctly with dmd from git master. Prints "9 81 81" and "10 100 100".

The problem has been fixed in the PR that fixed issue 16408 [1]. So I'm closing
this as a duplicate. Feel free to undo if you think something more needs to be
done here.

[1] https://github.com/dlang/dmd/pull/6705

*** This issue has been marked as a duplicate of issue 16408 ***

--


More information about the Digitalmars-d-bugs mailing list