]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: check type of SUB argument to IMAGE_INDEX
authorHarald Anlauf <anlauf@gmx.de>
Mon, 29 Nov 2021 21:23:02 +0000 (22:23 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 30 Nov 2021 19:20:55 +0000 (20:20 +0100)
commit814f52a8bfc66aff8c453b040f0e730b034b7f52
tree39f863a7c4746ba388726449953027d18b041816
parente5440bc08e07fd491dcccd47e1b86a5985ee117c
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 <kargl@gcc.gnu.org>
gcc/fortran/check.c
gcc/testsuite/gfortran.dg/coarray_49.f90 [new file with mode: 0644]