https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120958

Mikael Morin <mikael at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikael at gcc dot gnu.org

--- Comment #12 from Mikael Morin <mikael at gcc dot gnu.org> ---
(In reply to anlauf from comment #10)
> JTFR: I can confirm the failure with 14.3+ here at -O1 and higher.
> 
> The problem vanishes for:
> 
> - adding the ASYNCHRONOUS attribute to norm_temp2
This appears to be the correct fix, but we should try to find something else
that doesn't requires to update all code using mpi.

I think in the mpi_f08 module the arguments are declared with the asynchronous
attribute, so we can catch that to amend the fnspec.

For mpif.h we can amend gfc_get_formal_from_actual_arglist to guess the
asynchronous attribute for some arguments of the mpi_* functions, and then it's
as in the mpi_f08 module case.

For the mpi module I don't know.  There is an explicit interface, so we don't
use gfc_get_formal_from_actual_arglist, but there is no asynchronous attribute
as far as I know.

Reply via email to