Skip to content

Conversation

@klausler
Copy link
Contributor

This compiler (like all others) allows OPTIONAL dummy arguments to appear as arguments to some intrinsic functions that are specified as disallowing them; document this interpretation better.

@llvmbot llvmbot added the flang Flang issues not falling into any other category label Dec 12, 2025
Copy link
Contributor

@tarunprabhu tarunprabhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of suggestions.

the same way as the static presence or absence of the argument does
at compilation time, which would not be possible.)
No compiler seems to enforce this requirement, and we interpret it
to mean that a`OPTIONAL` dummy argument may appear but must be present
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
to mean that a`OPTIONAL` dummy argument may appear but must be present
to mean that an `OPTIONAL` dummy argument may appear, but must be present

presence at runtime could affect the semantics of the intrinsic in
the same way as the static presence or absence of the argument does
at compilation time, which would not be possible.)
No compiler seems to enforce this requirement, and we interpret it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
No compiler seems to enforce this requirement, and we interpret it
No compiler seems to enforce this requirement. We interpret it

This compiler (like all others) allows OPTIONAL dummy arguments to
appear as arguments to some intrinsic functions that are specified
as disallowing them; document this interpretation better.
the same way as the static presence or absence of the argument does
at compilation time, which would not be possible.)
No compiler seems to enforce this requirement.
We interpret it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange line break?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flang Flang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants