the following test case crashes in version 2.041 import std.conv; void main() { int[string] aa; for(int i = 0; i < 100000; i++) { string s = to!string(i); aa[s] = i; } } while it worked with 2.040 and earlier. The access violation is in _aaBalance and very much looks like a memory corruption.
See my bug fix for 3930, let me know if this fixes the problem.
Somehow I could not reproduce it with this test case, but it still happened with the larger project that showed the problem to begin with. After applying your fix, it back up and running. Thanks.
OK, great. I'll mark this as a duplicate of 3930 so we only track it in one place. *** This issue has been marked as a duplicate of issue 3930 ***