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: [email protected]
ReportedBy: [email protected]
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 ?