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 

Wrong result with /64 /opt, module variable used as DO index

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

PostPosted: Thu Feb 22, 2024 8:57 pm    Post subject: Wrong result with /64 /opt, module variable used as DO index Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Fri Feb 23, 2024 8:36 am    Post subject: Reply with quote

mecej4

Many thanks for the feedback. The failure relates to optimisation number 30. I have made a note of this.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


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

PostPosted: Fri Feb 23, 2024 11:06 am    Post subject: Reply with quote

This failure 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