https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103790
--- Comment #6 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:c9c48ab7bad9fe5e096076e56a60ce0a5a2b65f7 commit r12-6910-gc9c48ab7bad9fe5e096076e56a60ce0a5a2b65f7 Author: Andre Vehreschild <ve...@gcc.gnu.org> Date: Fri Jan 28 09:20:23 2022 +0100 Prevent malicious descriptor stacking for scalar components. 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.