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

Thomas Koenig tkoenig@netcologne.de
Thu Mar 29 18:07:00 GMT 2018


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?

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 1113 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180329/d3c625eb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zero_sized_10.f90
Type: text/x-fortran
Size: 511 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180329/d3c625eb/attachment-0001.bin>


More information about the Fortran mailing list