[PATCH] [PR123949] Fix PDT ICE with large KIND values.

Jerry D jvdelisle2@gmail.com
Fri Feb 20 01:23:38 GMT 2026


I plan commit the attached patch from Christopher if
no objections.

The patch was provided in the PR and tested by the
original reporter and myself.

Regression tested on x86_64_linux_gnu.

Regards,

Jerry

Fortran: [PR123949] Fix PDT ICE with large KIND values.

Signed-off-by: Christopher Albert <albert@tugraz.at>

     PR fortran/123949
gcc/fortran/ChangeLog:

     * decl.cc (gfc_get_pdt_instance): Use full integer string encoding
     for PDT instance naming rather than 32-bit extraction, which caused
     ICEs for valid large KIND values.

gcc/testsuite/ChangeLog:

     * gfortran.dg/pdt_85.f03: New test.
     * gfortran.dg/pr123949.f90: New test.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr123949.diff
Type: text/x-patch
Size: 5570 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20260219/9b47a704/attachment-0001.bin>


More information about the Fortran mailing list