Community
Participate
Working Groups
The following simple program makes a SyntaxException appear in the Outline view. The error is not shown in the Fortran Analysis/Refactoring Problems view, so I can't copy it. program main implicit none integer, parameter :: dig=3 real :: var var = 3.14 write(*,55) var 55 format(f0.<dig>) ! This line causes the Syntax Exception ! 55 format (f0<dig>) ! Without the dot Syntax Exception disappears ! but does not compile (correctly) write(*,'(f0.<dig>)') var ! This does not yield the Syntax Exception end program main +++++++ Error message (manually copied only the first part) +++++++++ SyntaxException: Syntax error: Unexpected extraneous character ([path edited]). Expected one of the following: block, close, [... etc]
Additional info: 55 format(f<dig>.3) ! does not yield the error 55 format(f<dig>.<dig>) ! again does yield the error
Bug is still present in the latest updates, i.e. Eclipse Juno, PTP 6.0.2/Photran 8.0.2
Still present in Photran 8.0.5
The reason I find this important is only because when there is a syntax exception one can't apply any refactorings to that file.