← Back to index
|
Original Bugzilla link
Bug 21077 – Order of evaluation of associative array is compiler-dependent
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-07-25T22:06:53Z
Last change time
2024-12-13T19:10:23Z
Assigned to
No Owner
Creator
Mathias LANG
Moved to GitHub: dmd#17974 →
Comments
Comment #0
by pro.mathias.lang — 2020-07-25T22:06:53Z
``` import std.stdio; int foo () { static int i; return ++i; } void main () { writeln([ foo(): foo(), foo(): foo() ]); } ``` ``` % dmd -run ooe.d [2:4, 1:3] % ldc2 -run ooe.d [3:4, 1:2] ``` GDC also does something different.
Comment #1
by robert.schadek — 2024-12-13T19:10:23Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/17974
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB