PR fortran/71706 - ICE on using sync images with -fcheck=bounds
authorHarald Anlauf <anlauf@gmx.de>
Mon, 29 Jun 2020 13:15:49 +0000 (15:15 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Mon, 29 Jun 2020 13:15:49 +0000 (15:15 +0200)
commite6cc67f6616c96f3e18a434e0c74ba2f3818cb6d
tree678e7c84131543f09dbf1ca7f98453136ccd41cc
parent95d7d7f92924bca0dc04df95b14d7d1b56f92d98
PR fortran/71706 - ICE on using sync images with -fcheck=bounds

The run-time checking code did not properly convert the kind of the
argument to SYNC IMAGES, leading to an error in verify_gimple.  Fix that.

gcc/fortran/
PR fortran/71706
* trans-stmt.c (gfc_trans_sync): Do proper kind conversion in
bounds-checking code.
gcc/fortran/trans-stmt.c
gcc/testsuite/gfortran.dg/pr71706.f90 [new file with mode: 0644]