PR fortran/95709 - ICE in gfc_resolve_code, at fortran/resolve.c:11807
authorHarald Anlauf <anlauf@gmx.de>
Mon, 6 Jul 2020 16:52:39 +0000 (18:52 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Mon, 6 Jul 2020 16:52:39 +0000 (18:52 +0200)
commit824084e72e388f81015e7f67922c75f50741355a
treeb4771a3f33b47112bc2274ac2cdb580197bf4d7d
parent0e5abeb0cb06f9798a559e1238839c5d6581657e
PR fortran/95709 - ICE in gfc_resolve_code, at fortran/resolve.c:11807

The legacy "assigned GOTO" accepts only scalar integer variables.
Check for proper arguments.

gcc/fortran/
PR fortran/95709
* resolve.c (gfc_resolve_code): Check for valid arguments to
assigned GOTO.
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/pr95709.f90 [new file with mode: 0644]