[patch, fortran] Fix PR 85111, some more zero size stuff

Jerry DeLisle jvdelisle@charter.net
Fri Mar 30 02:31:00 GMT 2018


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  <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-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
> 
>          PR fortran/85111
>          * gfortran.dg/zero_sized_10.f90: New test.



More information about the Fortran mailing list