Bug 1019 – regression: missing filename and line number: Error: array index X is out of bounds [0 .. Y]

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-03-04T05:02:00Z
Last change time
2014-02-16T15:23:30Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2007-03-04T05:02:35Z
# 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
Comment #1 by thomas-dloop — 2007-03-12T01:23:59Z
Fixed in DMD-1.009