https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84135
--- Comment #10 from Tobias Burnus <burnus at gcc dot gnu.org> --- Author: burnus Date: Fri Jan 10 14:37:29 2020 New Revision: 280110 URL: https://gcc.gnu.org/viewcvs?rev=280110&root=gcc&view=rev Log: Fortran] PR84135 fix merging dimension into codimension array spec Backported from mainline 2020-01-09 Tobias Burnus <tob...@codesourcery.com> PR fortran/84135 * array.c (gfc_set_array_spec): Fix shifting of codimensions when adding a dimension. * decl.c (merge_array_spec): Ditto. Fix using correct codimensions. Backported from mainline 2020-01-09 Tobias Burnus <tob...@codesourcery.com> PR fortran/84135 * gfortran.dg/coarray/codimension_3.f90: New. Added: branches/gcc-9-branch/gcc/testsuite/gfortran.dg/coarray/codimension_3.f90 Modified: branches/gcc-9-branch/gcc/fortran/ChangeLog branches/gcc-9-branch/gcc/fortran/array.c branches/gcc-9-branch/gcc/fortran/decl.c branches/gcc-9-branch/gcc/testsuite/ChangeLog