re PR fortran/66128 (ICE for some intrinsics with zero sized array parameter)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 3 Mar 2018 19:49:20 +0000 (19:49 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 3 Mar 2018 19:49:20 +0000 (19:49 +0000)
commit94e6b5e5a65e83b71a1a3f736dd7e0e9f460af9c
treed77c4c3d7937a60e71eede30aa46811774b9b017
parent250540af390875625bf9c611597786c29addafb9
re PR fortran/66128 (ICE for some intrinsics with zero sized array parameter)

2018-03-03  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/66128
* simplify.c (is_size_zero_array): New function to check for size
zero array.
(gfc_simplify_all, gfc_simplify_any, gfc_simplify_count,
 gfc_simplify_iall, gfc_simplify_iany, gfc_simplify_iparity,
 gfc_simplify_minval, gfc_simplify_maxval, gfc_simplify_norm2,
 gfc_simplify_product, gfc_simplify_sum): Use it, and implement
requirements from F2018.

2018-03-03  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/66128
* gfortran.dg/zero_sized_8.f90: New test.

From-SVN: r258223
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog