[fortran] Support for Computed GO TO #780
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of Changes
test_goto_computed.py
that contains a unit test for a small Fortran file that has a Computed GO TO.cast_to_annotated_cast.py
. This fix allows correct support of Computed GO TOs.CAST Computed GO TO Conversion
Since the expression in Computed GO TOs evaluates to an index rather than a label, we make a small conversion to the expression in the CAST to support this. We utilize the _get Gromet function to handle this indexing.
So:
gets converted to:
Related issues
Resolves #698
Resolves #701
Resolves #773