We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fpm doesn't classify correctly the source type of program units without a program-statement, such as:
print *, "Hello World" end
or
print *, "Hello World" end program
which are allowed according to the standard.
Currently, parse_f_source will return FPM_UNIT_SUBPROGRAM (=4)` for these two cases.
parse_f_source
FPM_UNIT_SUBPROGRAM
The expected source unit type should be FPM_UNIT_PROGRAM (=1).
FPM_UNIT_PROGRAM
0.8.1, alpha
MacOS (Intel)
The culprit is the parsing logic, which relies on detecting the program statement at front:
fpm/src/fpm_source_parsing.f90
Lines 335 to 355 in da6d1bf
Instead it should probably rely on the end program statement which is mandatory per the standard. (J3/24-007, 14.1)
The text was updated successfully, but these errors were encountered:
I suppose that from the build perspective, a program unit is not very different to an external procedure.
Sorry, something went wrong.
end program
program
No branches or pull requests
Description
fpm doesn't classify correctly the source type of program units without a program-statement, such as:
or
which are allowed according to the standard.
Currently,
parse_f_source
will returnFPM_UNIT_SUBPROGRAM
(=4)` for these two cases.Expected Behaviour
The expected source unit type should be
FPM_UNIT_PROGRAM
(=1).Version of fpm
0.8.1, alpha
Platform and Architecture
MacOS (Intel)
Additional Information
The culprit is the parsing logic, which relies on detecting the program statement at front:
fpm/src/fpm_source_parsing.f90
Lines 335 to 355 in da6d1bf
Instead it should probably rely on the end program statement which is mandatory per the standard. (J3/24-007, 14.1)
The text was updated successfully, but these errors were encountered: