http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61014
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-04-30 Component|fortran |debug Known to work| |4.5.4 Summary|[4.6/4.7/4.8/4.9 |[4.7/4.8/4.9/4.10 |Regression] gdb can't find |Regression] gdb can't find |symbol of derived data type |symbol of derived data type |array in nested subroutine |array in nested subroutine Ever confirmed|0 |1 Known to fail| |4.8.2 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I get (gdb 7.7): Breakpoint 1, module::foo (bar=...) at module.f90:10 10 call subfoo() (gdb) p bar $1 = (( -1 )) (gdb) p bar(1)%i $2 = -1 (gdb) s module::subfoo () at module.f90:14 14 bar(1)%i = 1 (gdb) p bar(1)%i value being subranged must be in memory (gdb) p bar $3 = <optimized out> seems that nested function lowering and debugging don't play well together. Confirmed that it works well with 4.5.x.