[Issue 4201] New: associative arrays keys property contains corrupted data for keys property for keys of size < size_t

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 17 08:08:51 PDT 2010


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

           Summary: associative arrays keys property contains corrupted
                    data for keys property for keys of size < size_t
           Product: D
           Version: 2.041
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: sean at invisibleduck.org
        ReportedBy: schveiguy at yahoo.com


--- Comment #0 from Steven Schveighoffer <schveiguy at yahoo.com> 2010-05-17 08:08:49 PDT ---
This problem exists on 2.046 and is most likely related to bug 4184 which was
solved in 2.046.  Note that the bugzilla interface does not allow me to select
2.046.

test case:

void main()
{
    uint[ushort] aa;
    aa[1] = 1;
    aa[2] = 2;
    aa[3] = 3;
    aa[4] = 4;
    aa[5] = 5;
    writefln("%s", aa.keys);
}

outputs:

4 0 1 0 5

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


More information about the Digitalmars-d-bugs mailing list