Author: Tobias BurnusTobias Burnus Date: Sep 18, 2008 00:58
On Sep 18, 8:32 am, steven.bossc...@ gmail.com wrote:
>> Current language: auto; currently fortran
>> (gdb) print A
>> $1 = (PTR TO -> ( int4 (0:-1))) 0x8050398
>> (gdb) print *A
>> $2 = ()
Using gfortran 4.4 with Intel's idb the output is:
13 print *, A
(idb) p A
$1 = {1, 2, 3, 4, 5, 50331709}
(idb) pt A
type = INTEGER(4)(6)
(idb) p n
$2 = 5
(That idb prints 6 instead of 5 elements is a (reported) bug in IDB;
gfortran sets the ubound to 5 but sets no lbound - DWARF3 mandates
that then 1 is used for Fortran, but IDB uses 0 (as e.g. for C) - and
"0:5" are 6 elements.)
|