Fortran : ICE in gfc_check_reshape PR95585
authorMark Eggleston <markeggleston@gcc.gnu.org>
Thu, 11 Jun 2020 05:42:36 +0000 (06:42 +0100)
committerMark Eggleston <markeggleston@gcc.gnu.org>
Mon, 22 Jun 2020 12:14:44 +0000 (13:14 +0100)
commitd9aed5f1ccffc019ddf980e349caa3d092755cb4
treefcaa4f455cee93994ec87e813056fccbcfdabd3e
parentd57bf2315e024ada3393ad967e8f632121383c9c
Fortran  : ICE in gfc_check_reshape PR95585

Issue an error where an array is used before its definition
instead of an ICE.

2020-06-22  Steven G. Kargl  <kargl@gcc.gnu.org>

gcc/fortran/

PR fortran/95585
* check.c (gfc_check_reshape): Add check for a value when
the symbol has an attribute flavor FL_PARAMETER.

2020-06-22  Mark Eggleston  <markeggleston@gcc.gnu.org>

gcc/testsuite/

PR fortran/95585
* gfortran.dg/pr95585.f90: New test.
gcc/fortran/check.c
gcc/testsuite/gfortran.dg/pr95585.f90 [new file with mode: 0644]