[Issue 1284] CodeView: wrong CV array size for multi-dimensional static arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 22 13:35:03 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1284
bugzilla at digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #1 from bugzilla at digitalmars.com 2007-06-22 15:35 -------
The debug info looks like:
--------------------------------
$$SYMBOLS segment
S_COMPILE 06 x008000 Z8.50.3
S_GDATA32 off = x0000, seg = x0000, typ = x1002 _D4test4arr1G7G8k
segidx = 5 offset = 0018, lcfd = ec10, fd = 1, td = 4, targdisp = x0000
S_GDATA32 off = x00e0, seg = x0000, typ = x1003 _D4test4arr2G8G8k
segidx = 5 offset = 0036, lcfd = ec10, fd = 1, td = 4, targdisp = x0000
S_GDATA32 off = x01e0, seg = x0000, typ = x1004 _D4test4arr3G9G8k
segidx = 5 offset = 0054, lcfd = ec10, fd = 1, td = 4, targdisp = x0000
$$SYMBOLS ends
$$TYPES segment
00: LF_ARGLIST argcount=0
01: LF_ARRAY <typidx 0075> <typidx 0012> 20 00 00
02: LF_ARRAY <typidx 1001> <typidx 0012> e0 00 00
03: LF_ARRAY <typidx 1001> <typidx 0012> 00 01 00
04: LF_ARRAY <typidx 1001> <typidx 0012> 20 01 00
$$TYPES ends
-----------------
The sizes of the 3 arrays are 00E0, 0100, 0120, corresponding to 224, 256, and
288, which correspond to 4*8*7, 4*8*8, and 4*8*9, which looks correct to me.
--
More information about the Digitalmars-d-bugs
mailing list