Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F90/95 Parsing failure for functions that have their type spec use old style kinds #268

Open
RaoulHC opened this issue May 11, 2023 · 0 comments

Comments

@RaoulHC
Copy link
Collaborator

RaoulHC commented May 11, 2023

Functions that have their types declared with old style kinds before the function keyword fail to parse:

integer*4 function foo()
end function
$ stack exec fortran-src -- -v95 typed-function.f
ProgramFilefortran-src: typed-function.f90, 1:19: typed-function.f90: parsing failed.
Last parsed token: TId (1:11)-(1:18) "function".
CallStack (from HasCallStack):
  error, called at app/Main.hs:108:36 in main:Main

This is non-standard but the Fortran90.y and Fortran95.y grammars do appear to attempt to parse this, but fail for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant