From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25495 invoked by alias); 11 Oct 2008 16:34:15 -0000 Received: (qmail 25208 invoked by uid 48); 11 Oct 2008 16:32:57 -0000 Date: Sat, 11 Oct 2008 16:34:00 -0000 Message-ID: <20081011163257.25207.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/30249] Pointers not given target type in GFORTRAN In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg00749.txt.bz2 ------- 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