re PR fortran/85111 (ICE in min_max_choose, at fortran/simplify.c:4884 (and others))
authorThomas Koenig <tkoenig@gcc.gnu.org>
Fri, 30 Mar 2018 09:58:35 +0000 (09:58 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Fri, 30 Mar 2018 09:58:35 +0000 (09:58 +0000)
commitcd6094bf7c332eb9bd227563ebdd3b7f7a4991de
treeca0f2f2ddc2f79f58e2b67b8e7c5c16643192c9c
parent1832cbf8905a5d24075fc7b2aad495ec0e05cbdf
re PR fortran/85111 (ICE in min_max_choose, at fortran/simplify.c:4884 (and others))

2017-03-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/85111
* array.c (gfc_resolve_character_array_constructor): Early
exit for zero-size arrays.
* simplify.c (simplify_transformation_to_array): Exit early
if the result size is zero.
(simplify_minmaxloc_to_array): Likewise.

2017-03-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/85111
* gfortran.dg/zero_sized_10.f90: New test.

Add ChangeLog entries for r258973.

From-SVN: r258974
gcc/fortran/ChangeLog
gcc/testsuite/ChangeLog