]> git.ipfire.org Git - thirdparty/gcc.git/commit
Allow for class type coarray parameters. [PR77871]
authorAndre Vehreschild <vehre@gcc.gnu.org>
Thu, 15 Aug 2024 11:49:49 +0000 (13:49 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 14 Oct 2024 13:35:04 +0000 (15:35 +0200)
commitfd1a2f63bcac14cbedb8c8b1790525b9642567d9
treeea19105ba61063ca02adfcabcf3f6f10b5915f2b
parentec3d3ea60a55f25a743a037adda7d10d03ca73b2
Allow for class type coarray parameters. [PR77871]

gcc/fortran/ChangeLog:

PR fortran/77871

* trans-expr.cc (gfc_conv_derived_to_class): Assign token when
converting a coarray to class.
(gfc_get_tree_for_caf_expr): For classes get the caf decl from
the saved descriptor.
(gfc_get_caf_token_offset):Assert that coarray=lib is set and
cover more cases where the tree having the coarray token can be.
* trans-intrinsic.cc (gfc_conv_intrinsic_caf_get): Use unified
test for pointers.

gcc/testsuite/ChangeLog:

* gfortran.dg/coarray/dummy_3.f90: New test.
gcc/fortran/trans-expr.cc
gcc/fortran/trans-intrinsic.cc
gcc/testsuite/gfortran.dg/coarray/dummy_3.f90 [new file with mode: 0644]