https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77871
--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andre Vehreschild <ve...@gcc.gnu.org>: https://gcc.gnu.org/g:fd1a2f63bcac14cbedb8c8b1790525b9642567d9 commit r15-4329-gfd1a2f63bcac14cbedb8c8b1790525b9642567d9 Author: Andre Vehreschild <ve...@gcc.gnu.org> Date: Thu Aug 15 13:49:49 2024 +0200 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.