public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/53478] New: gfortran segfaults when module name clashes with C binding name of procedure
@ 2012-05-24 17:08 solomon.gibbs.lists at gmail dot com
  2012-05-24 17:45 ` [Bug fortran/53478] " kargl at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: solomon.gibbs.lists at gmail dot com @ 2012-05-24 17:08 UTC (permalink / raw)
  To: gcc-bugs

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 ?


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-05-20 20:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-24 17:08 [Bug fortran/53478] New: gfortran segfaults when module name clashes with C binding name of procedure solomon.gibbs.lists at gmail dot com
2012-05-24 17:45 ` [Bug fortran/53478] " kargl at gcc dot gnu.org
2012-05-24 18:06 ` sgk at troutmask dot apl.washington.edu
2012-05-24 18:53 ` sgk at troutmask dot apl.washington.edu
2012-06-25 12:06 ` dominiq at lps dot ens.fr
2013-04-15 10:06 ` aron at ahmadia dot net
2013-04-15 11:01 ` burnus at gcc dot gnu.org
2013-05-20 20:14 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).