This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR18578, PR18579, PR20857 and PR20885 - Constraints on INTENT(OUT and INOUT)
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Paul Thomas <paulthomas2 at wanadoo dot fr>, Steve Kargl <sgk at troutmask dot apl dot washington dot edu>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Sun, 29 Jan 2006 12:13:34 +0000
- Subject: Re: [Patch, fortran] PR18578, PR18579, PR20857 and PR20885 - Constraints on INTENT(OUT and INOUT)
- Organization: CodeSourcery
- References: <43DC66F8.50306@wanadoo.fr>
On Sunday 29 January 2006 06:55, Paul Thomas wrote:
> This patch implements the obvious constraints on the use of INTENT(OUT
> and INOUT). ie: that the actual argument should be a variable
> ("definable" in the standard) and that INTENT(OUT) variables should be
> defined or intialized before they are used or before return from the
> procedure.
Variables that aren't defined should be caught be the normal unused
parameter/variable warnings. AFAIK there's nothing special about INTENT(OUT)
that requires it be defined.
Paul