[Patch, fortran] PR45081 - [4.3/4.4/4.5/4.6 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208

Paul Richard Thomas paul.richard.thomas@gmail.com
Mon Sep 20 09:17:00 GMT 2010


Dear All,

This patch is quite straightforward and, together with the ChangeLogs,
is self-explanatory.  The testcase now simplifies all the intrinsic
expressions and evaluates the result to be 50.  That it compiles at
all is already test enough but, in addition, the correct result is
tested for.

Bootstrapped and regtested on FC9/x86_64 - OK for trunk?  How far back
to I fix the regression?

Cheers

Paul

2010-09-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/45081
	* simplify.c (is_constant_array_expr): Allow structure array
	elements as well as constants.
	(gfc_simplify_pack, gfc_simplify_reshape, gfc_simplify_spread,
	gfc_simplify_transpose, gfc_simplify_unpack): Copy the derived
	type of source to the result.

2010-09-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/45081
	* gfortran.dg/derived_array_intrinsics_1.f90 : New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: final.diff
Type: text/x-patch
Size: 4561 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100920/fbfb6acb/attachment.bin>


More information about the Fortran mailing list