[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

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 30 13:24:00 GMT 2014


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

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #2)
> As you also have "idb" at hand

I now did it myself with gcc 4.10 and idbc 13.0. (I don't have ifort.)

Result:
In line 10, I get:
(idb) p bar
$3 = {i = -1}

but in line 14, I get:
`module::foo::subfoo () at /dev/shm/h4j.f90:14
14            bar(1)%i = 1
(idb) p bar
Info: symbol bar is defined but not allocated (optimized away)

Thus, as Richard wrote:
> seems that nested function lowering and debugging don't play well together.



More information about the Gcc-bugs mailing list