[Issue 1019] New: regression: Error: array index X is out of bounds [0 .. Y]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 4 03:02:44 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1019

           Summary: regression: Error: array index X is out of bounds [0 ..
                    Y]
           Product: D
           Version: 1.007
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thomas-dloop at kuehne.cn


# int main(){
#    byte[5] a;
#    a[100]=3;
# 
#    return 0;
# }

dmd -c test.d
Error: array index 100 is out of bounds [0 .. 5]

The line number and file/module information is missing.

test cases:
http://dstress.kuehne.cn/nocompile/bounds_checking_01.d
http://dstress.kuehne.cn/nocompile/bounds_checking_02.d
http://dstress.kuehne.cn/nocompile/bounds_checking_03.d
http://dstress.kuehne.cn/nocompile/bounds_checking_04.d
http://dstress.kuehne.cn/nocompile/bounds_checking_05.d


-- 



More information about the Digitalmars-d-bugs mailing list