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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 26 18:16:45 PDT 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 at users.sf.net
        ReportedBy: d at 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).


-- 



More information about the D.gnu mailing list