(j3.2006) TARGET actual arg passed to POINTER dummy arg

Lionel, Steve steve.lionel
Fri Sep 16 14:33:49 EDT 2016


Yes.  The introduction mentions "An actual argument with the TARGET attribute can correspond to a dummy pointer."

There is a similar feature for procedure pointers, but it's a subtle point, easy to miss, and not mentioned in the introduction.

Steve

-----Original Message-----
From: j3-bounces at mailman.j3-fortran.org [mailto:j3-bounces at mailman.j3-fortran.org] On Behalf Of Bader, Reinhold
Sent: Friday, September 16, 2016 2:28 PM
To: fortran standards email list for J3 <j3 at mailman.j3-fortran.org>
Subject: Re: (j3.2006) TARGET actual arg passed to POINTER dummy arg
Importance: Low

This is permitted in Fortran 2008 already, provided the POINTER dummy arg has INTENT(IN).
See 007: 12.5.2.7 para 2.

Cheers
Reinhold

> -----Urspr?ngliche Nachricht-----
> Von: j3-bounces at mailman.j3-fortran.org [mailto:j3-bounces at mailman.j3- 
> fortran.org] Im Auftrag von Clune, Thomas L. (GSFC-6101)
> Gesendet: Freitag, 16. September 2016 20:18
> An: fortran standards email list for J3 <j3 at mailman.j3-fortran.org>
> Betreff: (j3.2006) TARGET actual arg passed to POINTER dummy arg
> 
> 
> Possibly this is just my memory playing funny tricks, but I seem to 
> recall in some private conversation at the previous J3 meeting it was mentioned that
> the next standard would permit this.   Looking at the relevant section in 16-
> 007-r1 seems to point the finger squarely at being a problem with my 
> memory.
> 
> Nonetheless, I thought I?d post here in case I?ve not read it correctly.    Would
> be nice or a project I?m working on, but not crucial.
> 
> Cheers,
> 
> - Tom
> 
> 
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3
_______________________________________________
J3 mailing list
J3 at mailman.j3-fortran.org
http://mailman.j3-fortran.org/mailman/listinfo/j3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6616 bytes
Desc: not available
Url : http://mailman.j3-fortran.org/pipermail/j3/attachments/20160916/47854094/attachment.bin 



More information about the J3 mailing list