View previous topic :: View next topic |
Author |
Message |
mecej4
Joined: 31 Oct 2006 Posts: 1897
|
Posted: Sat Mar 20, 2021 2:19 pm Post subject: Uninitialised variable not detected with /64 /checkmate |
|
|
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 |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2867 Location: South Pole, Antarctica
|
Posted: Sun Mar 21, 2021 1:48 pm Post subject: |
|
|
Mecej4,
We users definitely owe you for all the bug hunting and reporting you are doing! |
|
Back to top |
|
|
mecej4
Joined: 31 Oct 2006 Posts: 1897
|
Posted: Sun Mar 21, 2021 2:59 pm Post subject: |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8019 Location: Salford, UK
|
Posted: Mon Mar 22, 2021 9:48 am Post subject: |
|
|
Thanks mecej4. I have added this to the list. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8019 Location: Salford, UK
|
Posted: Wed Mar 31, 2021 11:24 am Post subject: |
|
|
This has now been fixed for the next release of FTN95. |
|
Back to top |
|
|
|