Skip to content

Conversation

@bonachea
Copy link
Member

@bonachea bonachea commented Jan 5, 2026

Fixes #166
Fixes #167

…null_ptr

Fortran's c_associated intrinsic has non-intuitive semantics and
does not directly function as an equality comparison
In the absence of -O3, it has been observed with gcc 14.2..15.2
that when pproc is a pointer to proc, the combination
  c_f_procpointer(c_funloc(proc), pproc2)
can produce a pproc2 that differs from pproc by 12 bytes.
However the expression:
  c_f_procpointer(c_funloc(pproc), pproc2)
(passing a procedure pointer to c_funloc rather than the procedure itself)
seems to more reliably produce a pproc2 that matches pproc.

This might be a compiler bug, or possibly intentional behavior.
It's unclear whether this is a violation of the standard.
…quals

Was previously testing as equals when one diagnosis_function_
was associated and the other was not.
@bonachea bonachea requested a review from rouson January 5, 2026 18:34
Copy link
Contributor

@rouson rouson left a comment

Choose a reason for hiding this comment

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

LGTM

@rouson rouson merged commit 20e6e21 into BerkeleyLab:main Jan 8, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants