www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD

reply d-bugmail puremagic.com writes:
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).


-- 
Apr 26 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1191


dvdfrdmn users.sf.net changed:

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





fixed in svn r125 / release 0.24


-- 
Jul 13 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1191






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


-- 
Feb 25 2008