[Issue 5842] New: hash table corruption

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 13 06:56:06 PDT 2011


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

           Summary: hash table corruption
           Product: D
           Version: D1
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: moi at vermi.fr


--- Comment #0 from Vermi <moi at vermi.fr> 2011-04-13 06:52:39 PDT ---
When emptying a hash table, rehash it and fill it, an error occure.

Code sample :
void main()
{
    string[ string ] test = null;

    test[ "test1" ] = "test1";
    test.remove("test1");

    test.rehash;

    test[ "test3" ] = "test3";
}

Result:
Error: Interger Divide by Zero

-- 
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