[Patch, fortran] PR102241 - [PDT] ICE when declaring derived type with a parameterized derived type member
Paul Richard Thomas
paul.richard.thomas@gmail.com
Mon Sep 29 10:17:23 GMT 2025
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Change.Logs
Type: application/octet-stream
Size: 1313 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20250929/d0aee007/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 17481 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20250929/d0aee007/attachment-0001.bin>
More information about the Fortran
mailing list