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

fix: work around ifx impure function-ref bug #83

Merged
merged 1 commit into from
May 2, 2024

Conversation

rouson
Copy link
Member

@rouson rouson commented May 2, 2024

According to the Fortran 2023 interpretation document requirement R1520 and R1521, a function-reference contains non-optional parentheses, which makes it standard-conforming to reference the user-defined generic operator(==) that is bound to the derived type test_description_t. For now, however, we make the operator impure to work around a compiler bug.

@rouson rouson requested a review from ktras May 2, 2024 20:15
According to the Fortran 2023 interpretation document requirement
R1520 and R1521, a function-reference contains non-optional
parentheses, which makes it standard-conforming to reference the
user-defined generic operator(==) that is bound to the derived
type test_description_t.  For now, however, we make the operator
impure to work around a compiler bug.
@rouson rouson force-pushed the workaround-ifx-proc-ptr-in-pure branch from 73a7b53 to 6651fa5 Compare May 2, 2024 20:21
Copy link
Collaborator

@ktras ktras left a comment

Choose a reason for hiding this comment

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

LGTM

@ktras ktras merged commit f3914ce into main May 2, 2024
4 checks passed
@ktras ktras deleted the workaround-ifx-proc-ptr-in-pure branch May 2, 2024 20:24
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.

2 participants