[Issue 12218] [AA] inserting into associative array invalidates foreach iteration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 28 01:45:06 PST 2014


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



--- Comment #2 from Ivan Kazmenko <gassa at mail.ru> 2014-02-28 01:45:01 PST ---
Created an attachment (id=1333)
program to find a reduced test case

Well, 124 numbers sound like much, but the test case presented above is the
most reduced example I came up with.  I attached the program used to find such
a test case.  Basically, it just adds an interval [lo; hi] into an associative
array and then iterates on the array.  The second similar array is also created
to make the breakage more likely because of data relocation, but it turns out
to be unnecessary.

On the bright side, the original broken program processes several megabytes of
text, so some reduction did in fact take place.

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