Skip to content

Workaround another gfortran bug in test_description_t constructors, and expand testing#129

Merged
bonachea merged 2 commits into
BerkeleyLab:mainfrom
bonachea:test_description-testing
Nov 8, 2025
Merged

Workaround another gfortran bug in test_description_t constructors, and expand testing#129
bonachea merged 2 commits into
BerkeleyLab:mainfrom
bonachea:test_description-testing

Conversation

@bonachea

@bonachea bonachea commented Nov 8, 2025

Copy link
Copy Markdown
Member

Due to a previously unknown (to us) defect in gfortran, PR #127 introduced a regression for client code passing a procedure(diagnosis_function_i) pointer to the test_description_t constructor (i.e. using the old !HAVE_PROCEDURE_ACTUAL_FOR_POINTER_DUMMY workaround).

This PR deploys a workaround for that new defect, and expands testing of test_description_t constructors to ensure all the cases are covered and continue to work.

Before this commit, gfortran 13..14.2 was invoking the wrong constructor
overload when passed a diagnosis_function_i pointer as an actual argument.

Re-ordering the function declarations in the generic interface appears to
be an effective workaround.
Ensure that all the cases are covered and checked for equivalence
@bonachea bonachea requested a review from rouson November 8, 2025 03:26

@rouson rouson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@bonachea bonachea merged commit 184fad6 into BerkeleyLab:main Nov 8, 2025
26 checks passed
@bonachea bonachea deleted the test_description-testing branch November 8, 2025 03:44
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