Fortran : ICE in gfc_validate_kind PR96099
authorMark Eggleston <markeggleston@gcc.gnu.org>
Thu, 1 Oct 2020 10:14:09 +0000 (11:14 +0100)
committerMark Eggleston <markeggleston@gcc.gnu.org>
Mon, 12 Oct 2020 07:56:13 +0000 (08:56 +0100)
commit875c29a245150b6d023b8b0eb7f0ba224df082d0
treeb8da5db633ac05a3f4ff096bff034e48ddaf23b8
parent2baa36d4911940a068e63f2ee4298c13f92cf8d9
Fortran  : ICE in gfc_validate_kind PR96099

Only check for kind if the type supports kind.

2020-10-12  Mark Eggleston  <markeggleston@gcc.gnu.org>

gcc/fortran/ChangeLog:

PR fortran/96099
* decl.c (gfc_match_implicit): Check for numeric and logical
types.

2020-10-12  Mark Eggleston  <markeggleston@gcc.gnu.org>

gcc/testsuite/ChangeLog:

PR fortran/96099
* gfortran.dg/pr96099_1.f90: New test.
* gfortran.dg/pr96099_2.f90: New test.
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/pr96099_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr96099_2.f90 [new file with mode: 0644]