This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/23270] New: Undefined reference to module blank common variable
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Aug 2005 05:54:06 -0000
- Subject: [Bug fortran/23270] New: Undefined reference to module blank common variable
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
! ld error - undefined reference to `__test_equiv_a'
! OK with ifc
!
module test_equiv
common a
real a
end module test_equiv
program module_equiv
use test_equiv
a = 999.0_4
end program module_equiv
[prt@localhost mytests]# /gcc-4.1/bin/gfortran -std=f95 module_equivalence_pr.f90
/tmp/cc0RTDPI.o(.text+0x9): In function `MAIN__':
: undefined reference to `__test_equiv__a'
collect2: ld returned 1 exit status
--
Summary: Undefined reference to module blank common variable
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pault at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23270