[J3] 15.5.2.5 Allocatable and pointer dummy variables
Malcolm Cohen
malcolm at nag-j.co.jp
Wed Sep 9 19:16:05 EDT 2020
> I thought that auto-targetting was defined by 15.5.2.7p2:
>
>"[...] the actual argument shall be a pointer or a valid target for the
>dummy pointer in a pointer assignment statement."
Yes, it is the second case in that sentence. The first case is just normal argument association for pointers, nothing to do with the Fortran 2008 feature “auto-targetting”; passing a pointer actual argument to a pointer dummy argument has been valid since pointers were added to the language.
Cheers,
--
..............Malcolm Cohen, NAG Oxford/Tokyo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20200910/136aba88/attachment.htm>
More information about the J3
mailing list