https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126799
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Mikael Morin <[email protected]>: https://gcc.gnu.org/g:26ba7ae2c5dafa759314faa5ed6dfa3b3a159368 commit r17-3255-g26ba7ae2c5dafa759314faa5ed6dfa3b3a159368 Author: Mikael Morin <[email protected]> Date: Thu Aug 13 11:03:52 2026 +0200 fortran: Fix element size in CO_BROADCAST implementation [PR126799] Similarly to the previous element size fix touching the shared memory implementation of collective subroutines, use the element length field instead of the span field of the input descriptor as element size in the CO_BROADCAST shared memory implementation. Contrary to the collective subroutine case, using the span could only cause extra memory usage here, without any more harm, and there is no testcase with any observable behaviour change. PR fortran/126799 libgfortran/ChangeLog: * caf/shmem/collective_subroutine.c (collsub_broadcast_array): Use the element length field instead of the span field as element size.
