This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]