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 

Compiler ignores statement with syntax error

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
mecej4



Joined: 31 Oct 2006
Posts: 1335

PostPosted: Mon Mar 09, 2020 5:34 pm    Post subject: Compiler ignores statement with syntax error Reply with quote

FTN95 8.51 exhibits a strange behavior when one mistakenly types ":=" instead of "=" (old Algol/Pascal assignment operator). Versions 8.4 and earlier flagged the line as erroneous, but Version 8.51 treats it as a comment line.

Code:
program weird
implicit none
integer :: i = 25
!
i := i + i
print *,i
end program


With Version 8.51, the output is
Code:
           25


The listing of the program shows the instruction address remaining unchanged on this erroneous line:
Code:
   0001   program weird                                                                          AT 0
   0002   implicit none                                                                          AT 20
   0003   integer :: i = 25                                                                      AT 20
   0004   !                                                                                      AT 20
   0005   i := i + i                                                                             AT 20
   0006   print *,i                                                                              AT 20
   0007   end program                                                                            AT 70
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Mar 10, 2020 9:00 am    Post subject: Reply with quote

mecej4

Thanks for the feedback. I have logged this as a bug.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


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

PostPosted: Wed Mar 11, 2020 4:08 pm    Post subject: Reply with quote

This regression 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 -> Support 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