[Patch, fortran] PR84931 - Expansion of array constructor with constant implied-do-object goes sideways

Paul Richard Thomas paul.richard.thomas@gmail.com
Sun Mar 25 13:24:00 GMT 2018


Thomas already committed a fix for the original problem (revisions
258641, 258666 & 258667).

However, I found another testcase that still failed - that of multiple
array constructors with iterators, within an array constructor without
an iterator. The attached fixes this and streamlines the implicated
chunk of code. Thomas's testcase is appropriately updated.

Bootstraps and regtests on FC27/x86_64 - OK for trunk, 7- and 6-branches?

Please note that I am not in a position to do any commits until Wednesday.

Paul

2018-03-25  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/84931
* simplify.c (gfc_convert_constant): Handle case of array
constructors within an array that has no iterator and improve
the conciseness of this section of code.

2018-03-25  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/84931
* gfortran.dg/array_constructor_52.f90: Add new test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 3167 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180325/f8a9d882/attachment.bin>


More information about the Fortran mailing list