------- Comment #2 from burnus at gcc dot gnu dot org 2009-02-02 09:36 ------- Jakub, do you have an idea? This might be a side effect of one of your DWARF patches.
Reduced test case: -------------------------------------------------------- module m contains subroutine a() integer :: i do i = 1, 5 if(i == 8) call abort() end do end subroutine a end module m use m call a() end -------------------------------------------------------- $ gfortran-4.4 -g -O0 aaa.f90 $ gdb --quiet a.out (gdb) b 6 Breakpoint 1 at 0x400704: file aaa.f90, line 6. (gdb) run Starting program: /dev/shm/a.out Breakpoint 1, __m_MOD_a () at aaa.f90:6 6 if(i == 8) call abort() Current language: auto; currently fortran (gdb) p i No symbol "i" in current context. (gdb) pt i No symbol "i" in current context. -------------------------------------------------------- $ gfortran-4.3 -g -O0 aaa.f90 $ gdb --quiet a.out (gdb) b 6 Breakpoint 1 at 0x400701: file aaa.f90, line 6. (gdb) run Starting program: /dev/shm/a.out Breakpoint 1, a () at aaa.f90:6 6 if(i == 8) call abort() Current language: auto; currently fortran (gdb) p i $1 = 1 (gdb) pt i type = integer(kind=4) -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39073