[Patch, fortran] PR102241 - [PDT] ICE when declaring derived type with a parameterized derived type member
Jerry D
jvdelisle2@gmail.com
Mon Sep 29 16:50:08 GMT 2025
On 9/29/25 3:17 AM, Paul Richard Thomas wrote:
> This patch looks to be mightier than it actually is :-) The concept is
> to detect PDT components of ordinary, non-PDT derived types, ensure
> that the new 'pdt_comp' field is set for the derived type, propagated
> through module usage, add type spec parameter lists to these
> components and do the allocation and deallocation of parameterized
> fields. The ChangeLog indicates where these things are happening.
>
> An issue came up in preparing this patch: Several existing testcases
> were leaking memory because deallocations were absent. These have been
> added as appropriate. Unfortunately several leaks remain, either
> because deallocation crashes or memory is lost in operations such as
> allocation or assignment. Comments have been added in these tests and
> I will update PR121972(pdt_3.f03 leaks memory).
>
> Regtests on FC42/x86_64 - OK for mainline?
>
> Paul
Yes, reviewed and tested OK here.
Jerry
More information about the Fortran
mailing list