View previous topic :: View next topic |
Author |
Message |
mecej4
Joined: 31 Oct 2006 Posts: 1886
|
Posted: Mon Mar 09, 2020 5:34 pm Post subject: Compiler ignores statement with syntax error |
|
|
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
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Tue Mar 10, 2020 9:00 am Post subject: |
|
|
mecej4
Thanks for the feedback. I have logged this as a bug. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Wed Mar 11, 2020 4:08 pm Post subject: |
|
|
This regression has now been fixed for the next release of FTN95. |
|
Back to top |
|
|
|