[PATCH] Fortran : ICE in gfc_find_array_ref(): No ref found PR95981

Mark Eggleston mark.eggleston@codethink.co.uk
Wed Jul 1 06:56:20 GMT 2020


Please find attached a patch to fix PR95981.  Original patch by Steve Kargl.

OK to commit and backport?

Commit message:

Fortran  :  ICE in gfc_find_array_ref(): No ref found PR95981

When looking for an array reference allow NULL references.  If
no array reference is found dim_rank_check should return false.

2020-07-01  Steven G. Kargl  <kargl@gcc.gnu.org>

gcc/fortran/

     PR fortran/95981
     * check.c (dim_rank_check): Allow NULL references in call to
     gfc_find_array_ref and return false if no reference is found.

2020-07-01  Mark Eggleston <markeggleston@gcc.gnu.org>

gcc/testsuite/

     PR fortran/95981
     * gfortran.dg/pr95981.f90: New test.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PR95981.patch
Type: text/x-patch
Size: 1871 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200701/9a61d51a/attachment.bin>


More information about the Gcc-patches mailing list