]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix detection of descriptor arrays in coarray [PR107635]
authorAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 21 Feb 2025 13:06:28 +0000 (14:06 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 25 Feb 2025 09:10:36 +0000 (10:10 +0100)
commitaf73228fdb2e61c6354f972987ba2a746c3519f7
tree24b23eb359c36a9ddeee4dea11bd764c2f9c91ca
parentcc81363c33a3b5768daf2d8a62ae1a80db12ef96
Fortran: Fix detection of descriptor arrays in coarray [PR107635]

Look at the formal arguments generated type in the function declaration
to figure if an argument is a descriptor arrays.  Fix handling of class
types while splitting coarray expressions.

PR fortran/107635

gcc/fortran/ChangeLog:

* coarray.cc (fixup_comp_refs): For class types set correct
component (class) type.
(split_expr_at_caf_ref): Provide location.
* trans-intrinsic.cc (conv_caf_send_to_remote): Look at
generated formal argument and not declared one to detect
descriptor arrays.
(conv_caf_sendget): Same.
gcc/fortran/coarray.cc
gcc/fortran/trans-intrinsic.cc