(j3.2006) Finalizing subroutines question
Jim Xia
jimxia
Fri May 23 11:13:26 EDT 2008
>
> Assuming that one has:
>
> subroutine t_finalize(x)
> type(t) :: x(100)
> end subroutine
>
> and uses
>
> type(t) :: myT(5)
>
> Does this mean that on finalizing "t_finalize" is called? According to
> 4.5.5.1:
The finalizer, t_finalize, will be called in this case, but it wouldn't be
a legal program because of the rules in the argument association: the
actual argument is an array of 5 elements and the dummy is expecting an
array at least 100 elements. Check section 12 in the standard for rules.
Thanks,
Jim Xia
RL 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://j3-fortran.org/pipermail/j3/attachments/20080523/ea1ccbaf/attachment.html
More information about the J3
mailing list