public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/16485] New: Private subroutines from different modules collide during linking.
@ 2004-07-12  0:45 olchansk at panix dot com
  2004-07-12  4:39 ` [Bug fortran/16485] " olchansk at panix dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: olchansk at panix dot com @ 2004-07-12  0:45 UTC (permalink / raw)
  To: gcc-bugs

gfortran version "gcc version 3.5.0 20040710 (experimental)" generates incorrect
names for private functions inside modules, causing link-time collisions between
same-named private functions from different modules: (this problem prevents this
example from even assembling):

[olchansk@tw15 gfortran_test]$ cat test_ldcollide.f90
module foo
  private
contains
  subroutine sub
  end subroutine sub
end module foo
module bar
  private
contains
  subroutine sub
  end subroutine sub
end module bar
[olchansk@tw15 gfortran_test]$ make test_ldcollide.o
/triumfcs/trshare/olchansk/gcc-tree-ssa/install/bin/gfortran -x f95 -c  -o
test_ldcollide.o -O2 -g -Wall -Waliasing -Wline-truncation -Wsurprising
-Wunused-labels -fPIC -ffixed-line-length-132 test_ldcollide.f90
/tmp/ccAzTdiq.s: Assembler messages:
/tmp/ccAzTdiq.s:30: Error: symbol `sub_' is already defined
make: *** [test_ldcollide.o] Error 1

K.O.

-- 
           Summary: Private subroutines from different modules collide
                    during linking.
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: olchansk at panix dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16485


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

end of thread, other threads:[~2004-11-06 15:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-12  0:45 [Bug fortran/16485] New: Private subroutines from different modules collide during linking olchansk at panix dot com
2004-07-12  4:39 ` [Bug fortran/16485] " olchansk at panix dot com
2004-07-12  6:25 ` pinskia at gcc dot gnu dot org
2004-07-12 12:37 ` tobi at gcc dot gnu dot org
2004-07-13 17:19 ` tobi at gcc dot gnu dot org
2004-09-02 10:51 ` tobi at gcc dot gnu dot org
2004-09-15 13:13 ` cvs-commit at gcc dot gnu dot org
2004-09-15 13:16 ` pbrook at gcc dot gnu dot org
2004-11-06 15:43 ` pinskia at gcc dot gnu dot 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).