[Bug fortran/56007] Remarkably bad error message with DO array=1,2

anlauf at gmx dot de gcc-bugzilla@gcc.gnu.org
Sun Feb 7 23:04:00 GMT 2016


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" }


More information about the Gcc-bugs mailing list