[Patch, fortran] PR35780 - internal compiler error for complicated PARAMETER expressions

Paul Richard Thomas paul.richard.thomas@gmail.com
Sat Apr 5 18:32:00 GMT 2008


:ADDPATCH fortran:

I dropped working on WHERE PRs to do this because it was originally
posted as a regression.  In fact I do not think that it was but I have
fixed it anyway:)

This is a simple extension of expr.c(scalarize_intrinsic_call) to use
any of the arguments of an elemental intrinsic function as the
template to build up the array of function calls.  When I wrote this
function, I had not thought through the possibility that multiple
argument elementals might need scalarization.  The patch speaks for
itself and the testcase is essentially the reporter's.

Bootstrapped and regtested on x86_ia64/FC8 - OK for trunk and 4.3?

Paul

2008-04-05  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/35780
	* expr.c (scalarize_intrinsic_call): Identify which argument is
	an array and use that as the template.
	(check_init_expr): Remove tests that first argument is an array
	in the call to scalarize_intrinsic_call.

2008-04-05  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/35780
	* gfortran.dg/simplify_argN_1.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr35780.diff
Type: text/x-patch
Size: 5569 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080405/a2c0793b/attachment.bin>


More information about the Fortran mailing list