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]

Equivalence bug in gfortran


Sorry to bother you, but I am too stupid to understand how to use bugzilla.
So I send this bug report via the way of last resort.

The following does not link.

 module bla
    logical, save :: blub= .true.
    logical :: pa
    equivalence (blub, pa)
 end module

 program po
 use bla, only : pa

write (*,*) pa

end program po

! > gfortran Equivalence-Bug.f90 -static
! /tmp/UserName/ccOoVp3X.o: In function `MAIN__':
! Equivalence-Bug.f90:(.text+0x61): undefined reference to `__bla__pa'
! collect2: ld returned 1 exit status

Cordially,

Warner


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