https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101565
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:814f52a8bfc66aff8c453b040f0e730b034b7f52 commit r12-5634-g814f52a8bfc66aff8c453b040f0e730b034b7f52 Author: Harald Anlauf <anl...@gmx.de> Date: Mon Nov 29 22:23:02 2021 +0100 Fortran: check type of SUB argument to IMAGE_INDEX gcc/fortran/ChangeLog: PR fortran/101565 * check.c (gfc_check_image_index): Verify that SUB argument to IMAGE_INDEX is of type integer. gcc/testsuite/ChangeLog: PR fortran/101565 * gfortran.dg/coarray_49.f90: New test. Co-authored-by: Steven G. Kargl <ka...@gcc.gnu.org>