[Patch, fortran] PR29216 & PR29394 - Default initialization for fucntion results and intent OUT automatic arrays.

THOMAS Paul Richard 169137 Paul.Richard.THOMAS@cea.fr
Wed Oct 18 11:17:00 GMT 2006


Erik,

> be initialized of course, but that works already (thanks to 
> some code in
> trans-expr.c (gfc_conv_function_call), around line 2033.  More on this
> below.

You are right; it works for non-dummy AUTOMATIC arrays. I was trying to
translate the logic of the standard, which specifically mentions INTENT
OUT but never tested that it does anything.  It seems to me that the
description of this patch should be changed and that I should wait until
after branching before removing existing code that works.  After all, the
patch fixes things that were broken and does not break anything that did
not need fixing.

Thanks!

Best regards

Paul  



More information about the Fortran mailing list