[Patch, fortran v2] PR fortran/84006, PR fortran/100027 - ICE on storage_size with polymorphic argument

José Rui Faustino de Sousa jrfsousa@gmail.com
Fri Apr 16 18:38:36 GMT 2021


Hi All!

Proposed patch to:
PR84006 - [8/9/10/11 Regression] ICE in storage_size() with CLASS entity
PR100027 - ICE on storage_size with polymorphic argument

Patch tested only on x86_64-pc-linux-gnu.

Add branch to if clause to handle polymorphic objects, not sure if I got 
all possible variations...

Now with a new and extended test.

Thank you very much.

Best regards,
José Rui

Fortran: Fix ICE using storage_size intrinsic [PR84006, PR100027]

gcc/fortran/ChangeLog:

     PR fortran/84006
     PR fortran/100027
     * trans-intrinsic.c (gfc_conv_intrinsic_storage_size): add if
     clause branch to handle polymorphic objects.

gcc/testsuite/ChangeLog:

     PR fortran/84006
     * gfortran.dg/PR84006.f90: New test.

     PR fortran/100027
     * gfortran.dg/PR100027.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PR100027v2.patch
Type: text/x-patch
Size: 13909 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210416/bc1d38d2/attachment.bin>


More information about the Gcc-patches mailing list