Skip to content

Added recursion keyword#29

Open
lukaswittmann wants to merge 1 commit intotoml-f:mainfrom
lukaswittmann:recursion
Open

Added recursion keyword#29
lukaswittmann wants to merge 1 commit intotoml-f:mainfrom
lukaswittmann:recursion

Conversation

@lukaswittmann
Copy link
Copy Markdown

Fortran 2008 and earlier require the recursive keyword for any procedure that may be called re-entrantly, apparently even when indirectly called.
Otherwise when reading files, e.g., this error occurs (using gnu/11.4):

At line 140 of file ../subprojects/jonquil/src/jonquil/parser.f90
Fortran runtime error: Recursive call to nonrecursive procedure 'visit'

This patch adds the recursive statement to all three problematic routines.

Signed-off-by: lukaswittmann <[email protected]>
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 this pull request may close these issues.

1 participant