http://d.puremagic.com/issues/show_bug.cgi?id=1517


bearophile_h...@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_h...@eml.cc


--- Comment #2 from bearophile_h...@eml.cc 2010-03-17 20:10:47 PDT ---
Reduced test case, on dmd v2.041:


struct S {
    int i;

    int opCmp(S other) {
        return this.i - other.i;
    }
}

void main() {
    S[S] aa;
    foreach (int i; [1, -1, 7])
        aa[S(i)] = S(-i);

    // wrong order:
    assert(aa.keys.sort == [S(1), S(7), S(-1)]);
}


If this is a real bug (and it seems so) then I think it's serious bug, it's
worse than a compiler crash, because the program runs unreliably.

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

Reply via email to