https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56007
--- Comment #7 from Harald Anlauf <anlauf at gmx dot de> --- The patch in comment #6 requires adapting the testsuite accordingly: gfortran.dg/coarray_8.f90:149:7: do i = 1, 5 ! { dg-error "cannot be a sub-component" } needs to be changed to: do i = 1, 5 ! { dg-error "cannot be an array" }