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

Handle case when return is followed by scalar expression on one-line if (Fortran) #32

Closed
zbeekman opened this issue Jan 30, 2025 · 1 comment
Labels

Comments

@zbeekman
Copy link
Member

Handle the case when return is followed by scalar expression on one-line if.

e.g.,

function foo(a)
  ! some body w/ declartions and statments
  if (a > 10) return 11
  ! more stuff
  if (a < 5) return 4
  ! ...
end fuction foo
@zbeekman
Copy link
Member Author

zbeekman commented Feb 5, 2025

Upon further investigation this is an obsolescent feature. This is an alternate return form for a subroutine to branch to a label on exit for error handling. We should not be doing anything extra at this time to support if (<condition>) return <scalar-int-expr>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant