[Patch, fortran] [12/14] Support coarray subreferences: Fix simplify_cobound

Mikael Morin mikael.morin@sfr.fr
Fri Oct 7 14:39:00 GMT 2011


simplify_cobound, when it looks for the coarray reference, in the AR_ELEMENT
case, first checks that it is the last reference in the chain. 
As it is what we are trying to avoid, this patch removes that and uses the
corank field directly.

OK?
-------------- next part --------------
2011-10-06  Mikael Morin  <mikael.morin@sfr.fr>

	PR fortran/50420
	* simplify.c (simplify_cobound): Accept non-last-in-ref-chain coarrays.
	Don't set already set array ref.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr50420-12.diff
Type: text/x-diff
Size: 517 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111007/d28db89f/attachment.bin>


More information about the Fortran mailing list