[Patch, fortran] PR29315 - error passing an array derived from type element

Paul Thomas paulthomas2@wanadoo.fr
Thu Nov 9 22:42:00 GMT 2006

:ADDPATCH fortran:

This PR comes about because passing of components of arrays of derived 
types, where the component itself is and array, was not working.  The 
frontend limits what can be done here to:

element_of_dt_array%components_array              or

It is this latter that fails.  The problem is with the logic in 
trans-expr.c(is_aliased_array).  The patch and the testcase are 

Regtested on suse10.1/amd64  - OK for trunk, 4.2 and 4.1?


2006-11-09 Paul Thomas <pault@gcc.gnu.org>

	PR fortran/29744
	* trans-expr.c (is_aliased_array): Treat correctly the case where the
	component is itself and array or array reference.

2006-11-09 Paul Thomas <pault@gcc.gnu.org>

	PR fortran/29744
	* gfortran.dg/aliasing_dummy_4.f90: New test.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr29315.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061109/fc3cab19/attachment.ksh>

More information about the Gcc-patches mailing list