Currently, one prints a simple message e.g. when deallocating already deallocated memory:
Fortran runtime error: Attempt to DEALLOCATE unallocated memory. if (a.data == 0B) { _gfortran_runtime_error (&"Attempt to DEALLOCATE unallocated memory."[1]{lb: 1 sz: 1}); } Expected: Either by default or with some option ("-g", -f... ?) the message should also include the file name/line number. One could use -fbacktrace, however, this does not work for mixed language programming with, e.g., a "main()" written in C - or if no glibc is used, which is needed to get backtraces. -- Summary: Print location in (DE)ALLOCATION errors Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: diagnostic Severity: enhancement Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37507