https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103790
--- Comment #7 from CVS 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:26e237fb5b83582b30ef7c5a388bc4e968a5a289 commit r12-6915-g26e237fb5b83582b30ef7c5a388bc4e968a5a289 Author: Andre Vehreschild <ve...@gcc.gnu.org> Date: Fri Jan 28 12:34:17 2022 +0100 Prevent malicious descriptor stacking for scalar components [V2]. gcc/fortran/ChangeLog: PR fortran/103790 * trans-array.cc (structure_alloc_comps): Prevent descriptor stacking for non-array data; do not broadcast caf-tokens. * trans-intrinsic.cc (conv_co_collective): Prevent generation of unused descriptor. gcc/testsuite/ChangeLog: PR fortran/103790 * gfortran.dg/coarray_collectives_18.f90: New test.