[J3] [EXTERNAL] [BULK] Clarification needed on finalization
Jean Perier
jperier at nvidia.com
Mon Jan 22 08:32:47 UTC 2024
Hi Malcolm,
I am may have missed a quote here, I am not used to mailing lists, apologies. The quote I see says: "When an allocatable entity is deallocated [...]"
Where in the standard is it written that allocatable components of structure and array constructor values are deallocated?
"9.7.3.2 " only talks about function results and variables, not structure and array constructor values.
Hence, I think there may be a small gap here, and even though this may fall in the category of "obvious", specifying the how and when is important (proof is: 3 behaviors in the wild, not a favor for the users).
Jean
From: J3 <j3-bounces at mailman.j3-fortran.org> On Behalf Of Malcolm Cohen via J3
Sent: Monday, January 22, 2024 4:22 AM
To: 'General J3 interest list' <j3 at mailman.j3-fortran.org>
Cc: Malcolm Cohen <malcolm at nag-j.co.jp>
Subject: Re: [J3] [EXTERNAL] [BULK] Clarification needed on finalization
External email: Use caution opening links or attachments
Hi Jean,
> I will make the outrageous claim that the standard conformant implementation would be to have the memory leaks.
I already quoted the text that said otherwise.
Outrageous claims will be ignored.
Cheers,
--
..............Malcolm Cohen, NAG Oxford/Tokyo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20240122/eba4aa57/attachment.htm>
More information about the J3
mailing list