[J3] [SC22WG5.6418] RE: RE: [ukfortran] Request for interpretation of compile-time restrictions on ASSOCIATED
Malcolm Cohen
malcolm at nag-j.co.jp
Thu Aug 4 09:38:48 UTC 2022
>>, ASSOCIATED will return .FALSE.
>> because the shapes are not the same. ASSOCIATED is a much stronger
>> test than mere address comparison.
>>
>I see. In other words, ASSOCIATED doesn’t mean exactly the same as "POINTER and TARGET have been pointer-associated before". The semantics differs when bounds remapping is involved.
Actually, there are other situations where the shape may differ, e.g. when argument association or storage association is involved - this is since Fortran 90. It is not only bounds remapping.
Cheers,
--
..............Malcolm Cohen, NAG Oxford/Tokyo.
More information about the J3
mailing list