Thread overview
[Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
Apr 27, 2007
d-bugmail
Jul 14, 2007
d-bugmail
Feb 25, 2008
d-bugmail
April 27, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1191

           Summary: multidimensional associative array assignment doesn't
                    behave as with DMD
           Product: DGCC aka GDC
           Version: 0.23
          Platform: Macintosh
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn@users.sf.net
        ReportedBy: d@brian.codekitchen.net


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


-- 

July 14, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1191


dvdfrdmn@users.sf.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from dvdfrdmn@users.sf.net  2007-07-13 21:55 -------
fixed in svn r125 / release 0.24


-- 

February 25, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1191





------- Comment #2 from thomas-dloop@kuehne.cn  2008-02-25 05:03 -------
Added to DStress as http://dstress.kuehne.cn/run/a/associative_array_24_A.d http://dstress.kuehne.cn/run/a/associative_array_24_B.d


--