re PR fortran/85895 (ICE in gfc_conv_array_ref, at fortran/trans-array.c:3518)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 24 May 2018 22:28:33 +0000 (22:28 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 24 May 2018 22:28:33 +0000 (22:28 +0000)
commit8909fee2891ba084a2b8d317e864b3cf4c1e6b01
tree99d3fcbc18670b7c850e4d99d0aa38634368171a
parent91294f1e4f26a737ea8f747bb410d28a36ce0285
re PR fortran/85895 (ICE in gfc_conv_array_ref, at fortran/trans-array.c:3518)

2018-05-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85895
* resolve.c (resolve_sync): Resolve expression before checking for
an error.

2018-05-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85895

* gfortran.dg/coarray_3.f90: Fix invalid testcase.
* gfortran.dg/pr85895.f90: New test.

From-SVN: r260696
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_3.f90
gcc/testsuite/gfortran.dg/pr85895.f90 [new file with mode: 0644]