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

Failure to parse logical parameter statement #32

Closed
johnmauff opened this issue Nov 29, 2021 · 3 comments · May be fixed by #29
Closed

Failure to parse logical parameter statement #32

johnmauff opened this issue Nov 29, 2021 · 3 comments · May be fixed by #29
Assignees

Comments

@johnmauff
Copy link

The develop-acc branch version of gpufort fails to parse the following file:

program test1 logical, parameter :: dosfcflx = .true. end program test1

@domcharrier domcharrier self-assigned this Nov 29, 2021
@domcharrier
Copy link
Collaborator

Can reproduce parsing error but diagnosis seems wrong as:

program test1
  ! logical, parameter :: dosfcflx = .true.   ! not working
  ! logical :: dosfcflx = .true.              ! not working
  logical,parameter :: dosfcflx               ! works!
end program test1

In general, it seems that = and => cause the observed issues.

Thanks for your bug reports, @johnmauff

@domcharrier domcharrier linked a pull request Dec 2, 2021 that will close this issue
@domcharrier
Copy link
Collaborator

Please recheck with the latest develop-acc branch.

@johnmauff
Copy link
Author

Confirmed that your code update fixes the bug. Your changes for #32 and #33 have reduced the number of files that do not parse properly from 45 to 40. Thanks

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

Successfully merging a pull request may close this issue.

2 participants