[Patch, fortran] PR18578, PR18579, PR20857 and PR20885 - Constraints on INTENT(OUT and INOUT)

Paul Thomas paulthomas2@wanadoo.fr
Sun Jan 29 16:14:00 GMT 2006


Paul:

Are you OK with this minimalist version?  All the probing of undefined 
variables has gone.  All that remains is the test for the actual being 
definable.

This patch implements the obvious constraint on the use of INTENT(OUT 
and INOUT).  ie: that the actual argument should be a variable 
("definable" in the standard).  The patch is straightforward.

Regtested on Athlon/FC3.  OK for 4.2 and 4.1?

Paul

2006-01-29  Paul Thomas  <pault@gcc.gnu.org>

   PR fortran/18578
   PR fortran/18579
   PR fortran/20857
   PR fortran/20885
   * interface.c (compare_actual_formal): Error for INTENT(OUT or INOUT)
   if actual argument is not a variable.
 
2006-01-29  Paul Thomas  <pault@gcc.gnu.org>

   PR fortran/18578
   PR fortran/18579
   PR fortran/20857
   PR fortran/20885
   * gfortran.dg/intent_out_1.f90: New test.
 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: reduced_intent.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060129/4ceb67d3/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: intent_out_1.f90
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060129/4ceb67d3/attachment.f90>


More information about the Fortran mailing list