(j3.2006) Question about deferred length type parameters

Bill Long longb
Wed Sep 24 19:16:50 EDT 2014

On Sep 24, 2014, at 5:29 PM, Van Snyder <Van.Snyder at jpl.nasa.gov> wrote:

> If a pointer has deferred length type parameters, what becomes of them
> when the pointer association status becomes disassociated ( or
> undefined (  Do they remain defined (assuming they were
> defined), or do they become undefined?
> 6.4.5 and 13.7.94 say you can't inquire them, but are there other cases?
> One case I can imagine is that one establishes their values using
> pointer assignment or allocation, deallocates the pointer, then
> establishes an association status for it using C_F_POINTER.  Do the
> deferred length parameters of FPTR thereby have defined values?
> Do we need to specify in 4.2p8 that the initial values of deferred
> length type parameters of a pointer are undefined, unless the pointer is
> initially associated?  6.4.5 and 13.7.94 say you can't inquire them if
> the pointer is not associated, but what if it became associated using
> C_F_POINTER, which cannot assign values to deferred length parameters?

Doesn?t C_F_POINTER require that the new target of FPTR have the same type *and type parameters* as FPTR.  


> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3

Bill Long                                                                       longb at cray.com
Fortran Technical Suport  &                                  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