[Issue 16974] Equal associative arrays with associative array keys are considered unequal

2016-12-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16974 --- Comment #4 from Denis Shelomovskii --- (In reply to Denis Shelomovskii from comment #3) > Though I didn't actually My friend's code which worked around 2.5 years ago is now broken. --

[Issue 16974] Equal associative arrays with associative array keys are considered unequal

2016-12-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16974 --- Comment #3 from Denis Shelomovskii --- (In reply to safety0ff.bugz from comment #2) > You've marked this as a regression, which version did this previously work > in? Because at least before 79bc91b41334c1805f557ef2f1606de31c6764d1 [1] `rt.util.

[Issue 16974] Equal associative arrays with associative array keys are considered unequal

2016-12-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16974 safety0ff.bugz changed: What|Removed |Added CC||safety0ff.b...@gmail.com --- Comment #2 fro

[Issue 16974] Equal associative arrays with associative array keys are considered unequal

2016-12-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16974 --- Comment #1 from Denis Shelomovskii --- The reason is incorrect hash calculation: --- int[int] a = [1 : 2]; assert(typeid(a).getHash(&a) == typeid(a).getHash(&a)); // fails --- Opened druntime pull 1715 [1]. This incorrect hash calculation becam