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.