Bug 1191 – multidimensional associative array assignment doesn't behave as with DMD

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
PowerPC
OS
Mac OS X
Creation time
2007-04-26T20:16:00Z
Last change time
2015-06-09T05:15:02Z
Assigned to
dvdfrdmn
Creator
d

Comments

Comment #0 by d — 2007-04-26T20:16:43Z
GDC will compile this code, but throw an ArrayBoundsError at runtime: void main() { int stuff[char[]][char[]]; stuff["first"]["second"] = 5; } DMD 1.010 on Windows XP compiles the code and runs it with no error (you can print out the assigned variable to confirm this).
Comment #1 by dvdfrdmn — 2007-07-13T21:55:11Z
fixed in svn r125 / release 0.24
Comment #2 by thomas-dloop — 2008-02-25T05:03:10Z