This is the mail archive of the
mailing list for the GCC project.
RE: [Patch, fortran] PR29216 & PR29394 - Default initialization for fucntion results and intent OUT automatic arrays.
- From: "THOMAS Paul Richard 169137" <Paul dot Richard dot THOMAS at cea dot fr>
- To: "Erik Edelmann" <erik dot edelmann at iki dot fi>
- Cc: <fortran at gcc dot gnu dot org>, <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 18 Oct 2006 08:35:26 +0200
- Subject: RE: [Patch, fortran] PR29216 & PR29394 - Default initialization for fucntion results and intent OUT automatic arrays.
> 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
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.