https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46371
--- Comment #6 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:8871489c5162067c72a9b9ab05fe2179560e9986 commit r15-3020-g8871489c5162067c72a9b9ab05fe2179560e9986 Author: Andre Vehreschild <ve...@gcc.gnu.org> Date: Thu Aug 15 20:23:23 2024 +0200 Allow coarrays in select type. [PR46371, PR56496] Fix ICE when scalar coarrays are used in a select type. Prevent coindexing in associate/select type/select rank selector expression. gcc/fortran/ChangeLog: PR fortran/46371 PR fortran/56496 * expr.cc (gfc_is_coindexed): Detect is coindexed also when rewritten to caf_get. * trans-stmt.cc (trans_associate_var): Always accept a descriptor for coarrays. gcc/testsuite/ChangeLog: * gfortran.dg/coarray/select_type_1.f90: New test. * gfortran.dg/coarray/select_type_2.f90: New test. * gfortran.dg/coarray/select_type_3.f90: New test.