[Bug fortran/53478] New: gfortran segfaults when module name clashes with C binding name of procedure
solomon.gibbs.lists at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu May 24 17:08:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53478
Bug #: 53478
Summary: gfortran segfaults when module name clashes with C
binding name of procedure
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: solomon.gibbs.lists@gmail.com
gfortran segfaults rather than producing a compiler error when a module
procedure is bound with the same name as the module.
e.g.
module exports
implicit none
contains
subroutine f_exports() bind(C, name='exports')
end subroutine
end module exports
gfortran -funderscoring -O0 -g -Wall -c -fmessage-length=0 -o "exports.o"
"../exports.f08"
f951.exe: internal compiler error: Segmentation fault
Possibly related to Bug 48858 ?
More information about the Gcc-bugs
mailing list