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 

Puzzling error message: Colon found where not expected

 
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: Wed Feb 07, 2024 1:41 pm    Post subject: Puzzling error message: Colon found where not expected Reply with quote

The following test subroutine is compiled fine by FTN95 8.95 with or without /64, and by FTN95 9.0 with or without /64.

Code:
subroutine gcgris(ap,rr)
   
   implicit none
   real, dimension(:,0:), intent(in) :: ap
   real, dimension(:), intent(in)    :: rr
   
   real alpha,delta(0:5)
   integer l, nbn
   
   l = 0
   nbn = 5
   delta(l) = dot_product(ap(1:nbn,l),ap(1:nbn,l))
   alpha = DOT_PRODUCT(rr(1:nbn),ap(1:nbn,l))/delta(l)
   print *,l,alpha,delta(l)
   return

end subroutine


However, with /64 /opt, FTN95 9.0 gives a puzzling error message:

"ERROR T:\HST3D\hst3d-2.2\hst\src\salbug\xcolon.F90 13: Colon found where not expected"

That pertains to the line "alpha = ..."
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Feb 07, 2024 3:55 pm    Post subject: Reply with quote

mecej4

Many thanks for the feedback.

This failure has been fixed for the next release of FTN95. A temporary work-around is to add /inhibit_opt 96.

This new optimisation for DOT_PRODUCT can not be used on line 13 of this code and FTN95 will detect this in future.
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