This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug fortran/9395] can not acces allocatable array in fortran90
- From: "at_gdb at mathalacarte dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 6 Aug 2011 19:18:19 +0000
- Subject: [Bug fortran/9395] can not acces allocatable array in fortran90
- Auto-submitted: auto-generated
- References: <bug-9395-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=9395
Fred Krogh <at_gdb at mathalacarte dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |at_gdb at mathalacarte dot
| |com
--- Comment #9 from Fred Krogh <at_gdb at mathalacarte dot com> 2011-08-06 19:18:00 UTC ---
It seems I'm having this problem when using GNU gdb (Gentoo 7.2 p1) 7.2, and
GNU Fortran (Gentoo 4.6.1 p1.0, pie-0.4.5) 4.6.1. Here is the program I'm
running which includes comments on what gdb does.
program test1
! Gdb does not print entries in allocatable arrays
integer, allocatable :: itest(:)
allocate (itest(10))
do i = 1, 10
itest(i) = i
end do
print '("itest =", 10i3)', itest(1:10)
print '("Stop gdb on this statement and look at itest")'
! p itest(1:2) says slice our of range
! p itest(1) gives 0
! p itest(2) gives -1
stop
end program test1
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.