[Patch, fortran] PR123071 [PDT] ICE on invoking parent's type-bound function with PDT result

Paul Richard Thomas paul.richard.thomas@gmail.com
Sun Jan 4 16:37:13 GMT 2026


Hi All,

The patch that is posted on the PR turned out to be far too elaborate. This
version fixes the basic problem by resolving the class declared type before
building the typebound function call.

The complication caused by the PDTs was dealt with by the chunks in
trans-decl.cc, which permit the PDT result to be initialized when the
result is not explicitly referenced.

Regtests on FC43/x86_64. OK for mainline?

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20260104/7e8856ad/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Change.Logs
Type: application/octet-stream
Size: 838 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20260104/7e8856ad/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 5314 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20260104/7e8856ad/attachment.bin>


More information about the Fortran mailing list