Thread overview
[Issue 4201] New: associative arrays keys property contains corrupted data for keys property for keys of size < size_t
Oct 27, 2012
Malte Skarupke
May 17, 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@invisibleduck.org
        ReportedBy: schveiguy@yahoo.com


--- Comment #0 from Steven Schveighoffer <schveiguy@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: -------
July 06, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4201


Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsimcha@yahoo.com


--- Comment #1 from Steven Schveighoffer <schveiguy@yahoo.com> 2010-07-06 04:38:40 PDT ---
*** Issue 4429 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 06, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4201



--- Comment #2 from Steven Schveighoffer <schveiguy@yahoo.com> 2010-07-06 04:39:15 PDT ---
From bug 4429, reals also have problems as the key type.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 27, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4201


Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cbkbbejeap@mailinator.com


--- Comment #3 from Steven Schveighoffer <schveiguy@yahoo.com> 2010-08-27 07:23:12 PDT ---
*** Issue 4739 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 27, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4201


Malte Skarupke <malteskarupke@web.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |malteskarupke@web.de
         Resolution|                            |FIXED


--- Comment #4 from Malte Skarupke <malteskarupke@web.de> 2012-10-27 10:32:09 PDT ---
This seems fixed in DMD 2.060

The example now prints [4, 1, 5, 2, 3]

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