https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85895
--- Comment #4 from kargl at gcc dot gnu.org --- Author: kargl Date: Fri May 25 18:40:13 2018 New Revision: 260769 URL: https://gcc.gnu.org/viewcvs?rev=260769&root=gcc&view=rev Log: 2018-05-25 Steven G. Kargl <ka...@gcc.gnu.org> PR fortran/85895 Backport from trunk * resolve.c (resolve_sync): Resolve expression before checking for an error. 2018-05-25 Steven G. Kargl <ka...@gcc.gnu.org> PR fortran/85895 Backport from trunk * gfortran.dg/coarray_3.f90: Fix invalid testcase. * gfortran.dg/pr85895.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pr85895.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/resolve.c branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/testsuite/gfortran.dg/coarray_3.f90