Fortran : ICE in gfc_validate_kind PR95586
authorMark Eggleston <markeggleston@gcc.gnu.org>
Wed, 10 Jun 2020 15:18:23 +0000 (16:18 +0100)
committerMark Eggleston <markeggleston@gcc.gnu.org>
Tue, 23 Jun 2020 06:07:23 +0000 (07:07 +0100)
commit384aa890255dc01ba6d6529b127975c2c9a49a3c
tree533d6e749548418072eda32d10ec068def4d593d
parent605a8f3bbcfbc5c2d677f9eb0585db8ad15a730d
Fortran  :  ICE in gfc_validate_kind PR95586

Report syntax error for invalid letter-spec in IMPLICIT statements
for derived types and not an ICE.

Original patch by Steve Kargl.  Added test cases based on those
provided by G. Steinmetz  in the PR.

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

gcc/fortran/

PR fortran/95586
* decl.c (gfc_match_implicit): Only perform else branch if
the type spect is not BT_DERIVED.

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

gcc/testsuite/

PR fortran/95586
* gfortran.dg/pr95586_1.f90: New test.
* gfortran.dg/pr95586_2.f90: New test.
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/pr95586_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr95586_2.f90 [new file with mode: 0644]