(j3.2006) a question on c_f_pointer call
Jim Xia
jimxia
Wed Aug 25 15:34:07 EDT 2010
j3-bounces at j3-fortran.org wrote on 08/25/2010 03:23:28 PM:
> [image removed]
>
> Re: (j3.2006) a question on c_f_pointer call
>
> Aleksandar Donev
>
> to:
>
> fortran standards email list for J3
>
> 08/25/2010 03:23 PM
>
> Sent by:
>
> j3-bounces at j3-fortran.org
>
> Please respond to fortran standards email list for J3
>
> On 08/25/10 15:02, Jim Xia wrote:
> The question is: does standard require specific behavior on each of
> the DEALLOCATE statement? I found the standard is vague in this.
> It seems pretty clear to me. The intent is that it does not matter
> whether the association of the pointer happens via pointer
> assignments or with c_f_pointer. The most important rule is the one
about:
> "If a pointer appears in a DEALLOCATE statement, it shall be
> associated with the whole of an object that was created by allocation."
> Aleks
I certainly hope it's that simple. But the standard also mandates to set
appropriate values on stat if error condition occurs when executing
DEALLOCATE statement. Two of these cases are supposed to cause error
conditions. From implementation point of view, how can one tell if FPTR
is eligible for deallocation? The CPTR is simply a C pointer, no
necessary information as to whether they can be deallocated.
Cheers,
Jim Xia
XL Fortran Compiler Test
IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7
Phone (905) 413-3444 Tie-line 313-3444
email: jimxia at ca.ibm.com
D2/YF7/8200 /MKM
http://www.ibm.com/software/awdtools/fortran/xlfortran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://j3-fortran.org/pipermail/j3/attachments/20100825/8106f62e/attachment.htm>
More information about the J3
mailing list