This patch fixes PR96624.
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 28 Aug 2020 08:02:58 +0000 (09:02 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 28 Aug 2020 08:02:58 +0000 (09:02 +0100)
commit9d463ce7f983f03f0d65da03cfa430e29a0840c2
tree41ec23c59b00c5ee782babaea371f2d1fe85700f
parent3ba43155d2b27978589b2c1b0c4fdbaf8d4bba4d
This patch fixes PR96624.

2020-08-28  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/96624
* simplify.c (gfc_simplify_reshape): Detect zero shape and
clear index if found.

gcc/testsuite/
PR fortran/96624
* gfortran.dg/reshape_8.f90 : New test.
gcc/fortran/simplify.c
gcc/testsuite/gfortran.dg/reshape_8.f90 [new file with mode: 0644]