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

Incompatible attributes in variable declarations #413

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

Incompatible attributes in variable declarations #413

sergisiso opened this issue May 11, 2023 · 0 comments

Comments

@sergisiso
Copy link
Collaborator

fparser accepts declarations with incompatible attributes e.g.:
INTEGER, PARAMETER, SAVE :: l1 = 1
INTEGER, PARAMETER, INTENT(IN) :: l1 = 1
INTEGER, PARAMETER, ALLOCATABLE :: l1 = 1
INTEGER, INTENT(INOUT), SAVE :: l1
INTEGER, INTENT(IN), INTENT(OUT) :: l1
But any of these are valid Fortran. PSyclone now has checks for these issues, but this could be reported earlier by fparser.

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