[Bug debug/61014] [4.7/4.8/4.9/4.10 Regression] gdb can't find symbol of derived data type array in nested subroutine

sven.buijssen at math dot uni-dortmund.de gcc-bugzilla@gcc.gnu.org
Wed Apr 30 13:44:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61014

--- Comment #4 from Sven Buijssen <sven.buijssen at math dot uni-dortmund.de> ---
I tried gdb 7.7 with Intel Fortran 10.1.023, 11.1.080, 12.1.7.367, 13.0.1.117,
13.1.3.192 and 14.0.2.144, respectively and get wrong results at breakpoint 1
(value of bar(1)%i = 0) and either "no symbol" or "cannot access memory" at
breakpoint 2:

ifort 10.1.023:
Breakpoint 1, MODULE::foo (bar=..., bar=...) at module.f90:10
10          call subfoo()
(gdb) p bar
$1 = (( 0 ))
(gdb) c
Continuing.

Breakpoint 2, 0x0000000000402af8 in modulefoo_mp_subfoo_ ()
(gdb) p bar
No symbol "bar" in current context.

#

ifort 11.1.080 & 12.1.7.367 & 13.0.1.117 & 13.1.3.192:
Breakpoint 1, MODULE::foo (bar=...) at module.f90:10
10          call subfoo()
(gdb) p bar
$1 = (( 0 ))
(gdb) c
Continuing.

Breakpoint 2, MODULE::subfoo () at module.f90:14
14            bar(1)%i = 1
(gdb) p bar
$2 = (( 0 ))
(gdb) p bar(1)%i
Cannot access memory at address 0x4

#

ifort 14.0.2.144:
Breakpoint 1, MODULE::foo (bar=...) at module.f90:10
10          call subfoo()
(gdb) p bar
$1 = (( 0 ))
(gdb) c 
Continuing.

Breakpoint 2, modulefoo_mp_subfoo_ () at module.f90:14
14            bar(1)%i = 1
(gdb) p bar
No symbol "bar" in current context.
(gdb) p bar(1)%i
No symbol "bar" in current context.



More information about the Gcc-bugs mailing list