soccer jersey forums.silverfrost.com :: View topic - Uninitialised variable not detected with /64 /checkmate
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 

Uninitialised variable not detected with /64 /checkmate

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



Joined: 31 Oct 2006
Posts: 1897

PostPosted: Sat Mar 20, 2021 2:19 pm    Post subject: Uninitialised variable not detected with /64 /checkmate Reply with quote

FTN95 8.70 on Windows 10-64, compiling with /checkmate for 32-bit, for the following test program, detects the undefined variable -- hardly surprising.

With /64 /checkmate, however, the bug goes undetected, and the program prints 0.0.

Code:
program Uninit
   implicit none
   integer , dimension(2,201) :: iv

   print *,iv(2,201)
   stop

end program Uninit


Tinkering with the bounds of IV and modifying the indices in the PRINT statement to match, e.g., (2,101) in both places, may make the bug go away (the reference to the undefined array element gets detected).

This bug may be related to the one that I reported a few days ago: http://forums.silverfrost.com/viewtopic.php?t=4431 .
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2867
Location: South Pole, Antarctica

PostPosted: Sun Mar 21, 2021 1:48 pm    Post subject: Reply with quote

Mecej4,
We users definitely owe you for all the bug hunting and reporting you are doing!
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1897

PostPosted: Sun Mar 21, 2021 2:59 pm    Post subject: Reply with quote

Not really, Dan, since I am also learning from the posts from the forum members, including yourself.

However, thanks for your kind comment.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Mar 22, 2021 9:48 am    Post subject: Reply with quote

Thanks mecej4. I have added this to the list.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


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

PostPosted: Wed Mar 31, 2021 11:24 am    Post subject: Reply with quote

This 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 -> 64-bit 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