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

Harald Anlauf <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
Hi Jerry, Paul,

Am 08.05.26 um 2:18 AM schrieb Jerry D:
> 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 for the nice review!

Pushed as r17-410-g1904b9207203bb to mainline so far.

It's very gratifying to have a patch that deletes more than
it adds and still fixes a problem...

:-)

Harald

> 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.