Silverfrost Forums

Welcome to our forums

Uninitialised variable not detected with /64 /checkmate

20 Mar 2021 1:19 #27302

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.

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: https://forums.silverfrost.com/Forum/Topic/3959 .

21 Mar 2021 12:48 #27309

Mecej4, We users definitely owe you for all the bug hunting and reporting you are doing!

21 Mar 2021 1:59 #27310

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

However, thanks for your kind comment.

22 Mar 2021 8:48 #27315

Thanks mecej4. I have added this to the list.

31 Mar 2021 10:24 #27375

This has now been fixed for the next release of FTN95.

Please login to reply.