This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/53478] New: gfortran segfaults when module name clashes with C binding name of procedure


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 ?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]