https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85687
--- Comment #4 from kargl at gcc dot gnu.org --- Author: kargl Date: Fri May 11 17:29:14 2018 New Revision: 260169 URL: https://gcc.gnu.org/viewcvs?rev=260169&root=gcc&view=rev Log: 2018-05-11 Steven G. Kargl <ka...@gcc.gnu.org> PR fortran/85687 Backport from trunk * check.c (gfc_check_rank): Check that the argument is a data object. 2018-05-11 Steven G. Kargl <ka...@gcc.gnu.org> PR fortran/85687 Backport from trunk * gfortran.dg/pr85687.f90: new test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pr85687.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/check.c branches/gcc-8-branch/gcc/testsuite/ChangeLog