From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4175 invoked by alias); 11 Jan 2010 13:10:21 -0000 Received: (qmail 4077 invoked by uid 48); 11 Jan 2010 13:10:21 -0000 Date: Mon, 11 Jan 2010 13:10:00 -0000 Message-ID: <20100111131021.4076.qmail@sourceware.org> From: "mhp77 at gmx dot at" To: gdb-prs@sourceware.org In-Reply-To: <20070726092801.9395.virginie.trinite@thalesgroup.com> References: <20070726092801.9395.virginie.trinite@thalesgroup.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug fortran/9395] can not acces allocatable array in fortran90 X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00013.txt.bz2 ------- Additional Comments From mhp77 at gmx dot at 2010-01-11 13:10 ------- Using GNU gdb (GDB) 6.8.50.20090909-cvs from the archer repository (branch archer-jankratochvil-vla) and GNU Fortran (GCC) 4.5.0 20091215 (experimental), I can debug the above test program. However, if I declare an allocatable array as a type component as follows: program test_gdb implicit none type :: a real :: b = 1.0 real, dimension( : ), allocatable :: c end type a type( a ) :: d allocate( d%c( 3 ) ) d%c = 1.0 print *, d%c end program test_gdb gdb issues the following error message when trying to print d%c: (gdb) p d%c Cannot access memory at address 0x3f800004 Interestingly, if I remove the first type component (real :: b = 1.0) gdb works correctly. Btw, when can we expect the Fortran enhancements to be included in main-line gdb? Thanks! -- http://sourceware.org/bugzilla/show_bug.cgi?id=9395 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.