[Patch, fortran] PR33733 - ICEs in simplify_transfer

Paul Richard Thomas paul.richard.thomas@gmail.com
Fri Oct 12 17:18:00 GMT 2007


:ADDPATCH fortran:

These ICEs came about because gfc_simplify_transfer was trying to
process the source expression for functions of arrays before they
themselves were simplified.  The fix corrects this  by returning null
until the argument is simplified and is no longer EXPR_FUNCTION.

Bootstrapped and regtested on x86_ia64/fc5 - OK for trunk?

Cheers

Paul

2007-10-12  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/33733
	* simplify.c (gfc_simplify_transfer): Return null if the source
	expression is EXPR_FUNCTION.

2007-10-12  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/33733
	* gfortran.dg/transfer_simplify_6.f90: New test.



-- 
The knack of flying is learning how to throw yourself at the ground and miss.
       --Hitchhikers Guide to the Galaxy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: application/octet-stream
Size: 1161 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20071012/a1d62375/attachment.obj>


More information about the Gcc-patches mailing list