This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
gfortran bug
- From: Matthias Rheinhardt <mreinhardt at nordita dot org>
- To: <fortran at gcc dot gnu dot org>
- Date: Thu, 07 Jul 2011 16:39:00 +0200
- Subject: 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