re PR fortran/66128 (ICE for some intrinsics with zero sized array parameter)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 11 Mar 2018 20:28:00 +0000 (20:28 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 11 Mar 2018 20:28:00 +0000 (20:28 +0000)
commit6f76317a471e2960343ff94a60620fec76cdc35c
tree12fb00fb1d72af63187d841668ec88eab41d869e
parentcd5437ab5d98cf95cc6686a533b7d3582bcb1706
re PR fortran/66128 (ICE for some intrinsics with zero sized array parameter)

2018-03-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/66128
* simplify.c (simplify_transformation): Return default result for
empty array argument.
(gfc_simplify_all): Remove special-case handling for zerosize.
(gfc_simplify_any): Likewise.
(gfc_simplify_count): Likewise.
(gfc_simplify_iall): Likewise.
(gfc_simplify_iany): Likewise.
(gfc_simplify_iparity): Likewise.
(gfc_simplify_minval): Likewise.
(gfc_simplify_maxval): Likewise.
(gfc_simplify_norm2): Likewise.
(gfc_simplify_product): Likewise.
(gfc_simplify_sum): Likewise.

2018-03-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

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

From-SVN: r258435
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/zero_sized_9.f90 [new file with mode: 0644]