[J3] Question not just for HPC

Malcolm Cohen malcolm at nag-j.co.jp
Wed Oct 16 20:20:16 EDT 2019

Please use the current standard to answer the question, not some other document.


> I don't understand this. Item (3) in 16.6.7 seems to say that a pointer 
>assignment is a variable definition context.

It is a pointer association context, not a variable definition context. See the Fortran 2018 standard.


> The statement x%q => p is changing the value of the lock variable x%q, 
>in contradiction at least to the spirit of C1303.


It is changing the pointer association of x%q. The lock variable is its target, and does not have anything changed.




..............Malcolm Cohen, NAG Oxford/Tokyo.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20191017/508dd5ee/attachment.html>

More information about the J3 mailing list