------- Comment #4 from burnus at gcc dot gnu dot org 2008-10-11 16:32 ------- Jakub, I think GCC sets the wrong type for "rd". It has:
<1><1bb>: Abbrev Number: 7 (DW_TAG_array_type) <1bc> DW_AT_name : (indirect string, offset: 0xf9): array2_real(kind=4) whereas for ifort I get: <1><1fc>: Abbrev Number: 5 (DW_TAG_pointer_type) <1fd> DW_AT_type : <0x207> <201> DW_AT_associated : 5 byte block: 97 6 10 0 2e (DW_OP_push_object_address; DW_OP_deref; DW_OP_constu: 0; DW_OP_ne) <1><207>: Abbrev Number: 6 (DW_TAG_array_type) The DW_TAG_pointer_type and the DW_AT_associated should be there; gfortran has DW_AT_allocated which should not be there as there is no allocatable variable. Or do I miss something? My DWARF knowledge is limited. (In reply to comment #3) > With gdb on i686-apple-darwin9, I get either You know that gdb does not yet support variable-length arrays such as Fortran's assumed-shape arrays and C's (or was it C++'s?) VLA? This is work in progress (thanks, Jan!), see: http://sourceware.org/ml/gdb-patches/2008-10/msg00248.html http://people.redhat.com/jkratoch/vla/ Thus I was testing with the Intel Debugger (idb). -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30249