Hi,
I've got the following file called parse_error.f90. It contains invalid Fortran code due to a missing then keyword in the if statement. Notice that the file begins with some white space (a single empty line is sufficient to see the issue).
module m
integer :: x
contains
subroutine foo()
if (.true.)
x = 0
end if
end subroutine
end module
Running psyclone parse_error.f90 correctly gives a parse error. Running psyclone --keep-comments parse_error.f90 prints nothing and simply returns: there is no parse error and no code emitted.
I'm on PScylone commit f2023c8 (1 May) and fparser commit 7d396b6 (latest).
Hi,
I've got the following file called
parse_error.f90. It contains invalid Fortran code due to a missingthenkeyword in theifstatement. Notice that the file begins with some white space (a single empty line is sufficient to see the issue).Running
psyclone parse_error.f90correctly gives a parse error. Runningpsyclone --keep-comments parse_error.f90prints nothing and simply returns: there is no parse error and no code emitted.I'm on PScylone commit f2023c8 (1 May) and fparser commit 7d396b6 (latest).