D array show one more element in the variable window

1 view
Skip to first unread message

wm

unread,
Feb 22, 2008, 1:09:54 AM2/22/08
to zerobugs
BTW, I'm using zerobugs for D.

I found D array's are showing with one more elements: e.g. I have a
int arr[2], in the variable window, it will show arr[3].

Should the additional element be the length of the array? or some
other property? can you check and fix this?

Thanks.

cristiv

unread,
Feb 23, 2008, 2:39:48 AM2/23/08
to zerobugs
I have investigated the issue, and I found out that this is a D
compiler bug, not a Zero bug.

It affects the DMD compiler but not GDC. The DW_AT_upper_bound value
is off by one, I have reported it to Walter Bright.

Thanks for bringing it to my attention.
Reply all
Reply to author
Forward
0 new messages