View previous topic :: View next topic |
Author |
Message |
mecej4
Joined: 31 Oct 2006 Posts: 1896
|
Posted: Thu Feb 22, 2024 8:57 pm Post subject: Wrong result with /64 /opt, module variable used as DO index |
|
|
When the following program is built with /64 /opt and run, the result is wrong -- a zero is printed instead of 34^2 = 1156.
Code: | module imod_m
implicit none
integer idir
end module
program tst
use imod_m
implicit none
integer j, k
do idir=1,10 ! Module variable used as DO index variable
j = idir*3+4
k = j*j
end do
print *,k
end program |
|
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8003 Location: Salford, UK
|
Posted: Fri Feb 23, 2024 8:36 am Post subject: |
|
|
mecej4
Many thanks for the feedback. The failure relates to optimisation number 30. I have made a note of this. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8003 Location: Salford, UK
|
Posted: Fri Feb 23, 2024 11:06 am Post subject: |
|
|
This failure has now been fixed for the next release of FTN95. |
|
Back to top |
|
|
|