This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/9395] can not acces allocatable array in fortran90


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]