This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37507] New: Print location in (DE)ALLOCATION errors
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2008 09:09:24 -0000
- Subject: [Bug fortran/37507] New: Print location in (DE)ALLOCATION errors
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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