[Issue 5835] `TypeInfo_Array.getHash` creates raw data hash instead using array element hash function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 6 03:28:16 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=5835



--- Comment #7 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2014-03-06 15:28:11 MSK ---
(In reply to comment #5)
> ...
> With structs:
> ...
>     assert(typeid(S[]).getHash(&a1) != typeid(S[]).getHash(&a2)); // fails
> ...

Of course `==` was meant.

A fixing pull:
https://github.com/D-Programming-Language/druntime/pull/735

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list