Re: [PATCH] Fortran: fix automatic deallocation with derived type IO [PR111952,PR125059]

Jerry D <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
On 5/7/26 1:52 PM, Harald Anlauf wrote:
> Dear all,
> 
> this patch appears to fix an almost 10-year old puzzle, where an
> attempt was made to prevent some optimizations by declaring
> instances of derived types with DTIO as static.  This has the
> side-effect that automatic deallocation did not work.
> 
> The root cause was a wrong fnspec attribute for the argument
> relating to the variable being read.
> 
> Regtested on x86_64-pc-linux-gnu.  OK for mainline?
> And OK for backport to 16-branch?
> 
> Thanks,
> Harald
> 

Yes, very much OK.

Thanks,

Jerry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.