https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107635
--- Comment #14 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:af73228fdb2e61c6354f972987ba2a746c3519f7 commit r15-7694-gaf73228fdb2e61c6354f972987ba2a746c3519f7 Author: Andre Vehreschild <ve...@gcc.gnu.org> Date: Fri Feb 21 14:06:28 2025 +0100 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.