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 

Unexpected warning for valid code

 
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: 1885

PostPosted: Thu Feb 17, 2022 4:37 pm    Post subject: Unexpected warning for valid code Reply with quote

In the following code, DSNAME is a character variable of length 8.

Code:
    subroutine get_mask(dsname,is_lin,seq_no)
       character(len=8), intent(in) :: dsname
       logical, intent(out) :: is_lin(9)
       integer, intent(out) :: seq_no
!
       if(dsname(1:7).eq.'Misra1a')then
            is_lin(1:2)=[ .true., .false. ]
            seq_no=1
       else if(dsname(1:7).eq.'Chwirut')then
            is_lin(1:3)= [ .false., .false.,.false. ]
            seq_no=2
       else if(dsname.eq.'Eckerle4')then
            is_lin(1:6)= [ .true., .false., .true., .false., .true., .false. ]
            seq_no=3
       else
          write(*,*)' Unknown data set name ',dsname
          stop
       endif
       return
    end subroutine


The 8.61 version of the compiler does not give any warnings for this code, but the 8.83 version (with or without /64) says:
Code:

[FTN95/x64 Ver. 8.83.0 Copyright (c) Silverfrost Ltd 1993-2021]
0006)        if(dsname(1:7).eq.'Misra1a')then
WARNING - Procedure expected for argument DSNAME.
0009)        else if(dsname(1:7).eq.'Chwirut')then
WARNING - Procedure expected for argument DSNAME.
    NO ERRORS, 2 WARNINGS  [<GET_MASK> FTN95 v8.83.0]
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Feb 17, 2022 4:53 pm    Post subject: Reply with quote

mecej4

Thanks for the feedback. This regression has already 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