[Patch, fortran] PR29060 - spread causes ICE in gfc_trans_array_constructor
Paul Thomas
paulthomas2@wanadoo.fr
Sun Sep 17 11:39:00 GMT 2006
:ADDPATCH fortran:
This ICE is caused by an assignment in which no shape information was
being provided to the scalarizer. This patch makes the information
available using the shape of the source, the dim and the ncopies
parameters, as long as they are all available and constant. The
testcase is that provided by the reporter with the addition of the case
where the sourec and the inserted dimension are the other way round
(yes, I got it wrong the first time...).
Regtested on FC5/Athlon - OK for trunk and 4.1?
Paul
2006-09-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29060
* iresolve.c (resolve_spread): Build shape for result if the
source shape is available and dim and ncopies are constants.
2006-09-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29060
* gfortran.dg/spread_shape_1.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr29060.diff
Type: text/x-patch
Size: 1968 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060917/5861c95f/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr29060.msg
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060917/5861c95f/attachment.ksh>
More information about the Fortran
mailing list