On 03/29/2018 11:07 AM, Thomas Koenig wrote:
Hello world,
the attached patch fixes PR 85111, a regression introduced with my
recent simplification patches. Seems like the zero-size saga
has yet another chapter :-)
Regression-tested. OK for trunk?
Looks OK,
Thanks,
Jerry
Regards
Thomas
2017-03-29 Thomas Koenig <tkoe...@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-29 Thomas Koenig <tkoe...@gcc.gnu.org>
PR fortran/85111
* gfortran.dg/zero_sized_10.f90: New test.