[PATCH] Fortran : ICE in gfc_validate_kind PR95586

Mark Eggleston mark.eggleston@codethink.co.uk
Wed Jun 17 06:36:52 GMT 2020


Please find attached fix for PR95586.

OK to commit and backport?

Proposed commit message:

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-17  Steven G. Kargl  <kargl@gcc.gnu.org>

gcc/fortran/

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

2020-06-17  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.

-- 
https://www.codethink.co.uk/privacy.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fortran-ICE-in-gfc_validate_kind-PR95586.patch
Type: text/x-patch
Size: 2312 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200617/15e76adf/attachment.bin>


More information about the Gcc-patches mailing list