(j3.2006) the ASSOCIATE statement in Fortran 2003
Bill Long
longb
Mon Mar 5 16:37:02 EST 2012
On 3/5/12 2:41 PM, Robert Corbett wrote:
> Suppose F is a function that produces a data pointer value
> as a result. Was it standard conforming to use a
> reference to F as a selector in an ASSOCIATE statement
> in Fortran 2003?
>
> Consider
>
> ASSOCIATE (X => F())
>
> Clause 8.1.4.3 of the Fortran 2003 standard does not
> appear to give X the POINTER attribute, but paragraph 3
You can deduce this from 8.1.3.3, but it is spelled out clearly in
16.5.1.6.
Cheers,
Bill
> of Clause 7.1.4.1 does not cover the case of a
> selector.
>
> Bob Corbett
> _______________________________________________
> J3 mailing list
> J3 at j3-fortran.org
> http://j3-fortran.org/mailman/listinfo/j3
--
Bill Long longb at cray.com
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc./Cray Plaza, Suite 210/380 Jackson St./St. Paul, MN 55101
More information about the J3
mailing list