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

outer-shared-do-construct and inner-shared-do-construct not created #422

Open
rupertford opened this issue Jul 30, 2023 · 0 comments
Open

Comments

@rupertford
Copy link
Collaborator

In fparser2, the implementation of f2003 rule 835 <nonblock-do-stmt> = <action-term-do-construct>|<outer-shared-do-construct> checks for action-term-do-construct first and this appears to return a valid tree even if there are nested loops.

The obvious solution would be to re-order the order of rule checking. However, the implementation of outer-shared-do-construct and inner-shared-do-construct do not restore the reader if they fail to match, which will cause parse failures, so this also needs fixing at the same time.

When this is fixed then f2008 do concurrent support for these two classes should also be added.

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