This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

gfortran bug


Hello,

gfortran, v4.4.1 generates a bogus warning in the following case (and all
similar ones):

    subroutine safe_character_append_2(str1,str2)

      character (len=*), intent(inout):: str1
      character (len=*), intent(in):: str2
!
      call safe_character_assign(str1, trim(str1) // str2)
      return
!
      entry safe_character_prepend_2(str1,str2)
!
      call safe_character_assign(str1, trim(str2) // trim(str1))
!
    endsubroutine safe_character_append_2


saying

Warning: Unused variable 'safe_character_prepend_2' declared at (1)

clearly misinterpreting the ENTRY name as a VARIABLE name.


Cheers,
Matthias



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