forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTN95 8.83 issues false warning for substring expression

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
mecej4



Joined: 31 Oct 2006
Posts: 1707

PostPosted: Tue Dec 21, 2021 4:40 am    Post subject: FTN95 8.83 issues false warning for substring expression Reply with quote

The following function counts the number of decimal digits in a character variable.

Code:
integer function ndigit(s)
! count number of digits in character string
   implicit none
   character(len=*) :: s
   integer i,j
   j = 0
   do i=1,len_trim(s)
      if ( lge(s(i:i),'0') .and. lle(s(i:i),'9') )j=j+1
   end do
   ndigit = j
   return
end function


FTN95 8.83 says:

Code:
S:\LANG\FTN95>ftn95 ndigit.f90
[FTN95/Win32 Ver. 8.83.0 Copyright (c) Silverfrost Ltd 1993-2021]
WARNING S:\LANG\FTN95\ndigit.F90 8:  Procedure expected for argument S.
WARNING S:\LANG\FTN95\ndigit.F90 8:  Procedure expected for argument S.
    NO ERRORS, 2 WARNINGS  [<NDIGIT> FTN95 v8.83.0]
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7367
Location: Salford, UK

PostPosted: Tue Dec 21, 2021 10:00 am    Post subject: Reply with quote

mecej4

Thanks for the bug report. The bug is a recent regression. It has now been fixed for the next release of FTN95.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group