]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/trans-types.cc
Fortran: ICE, OOM while calculating sizes of derived type array components
authorHarald Anlauf <anlauf@gmx.de>
Wed, 21 Jul 2021 16:54:00 +0000 (18:54 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 21 Jul 2021 16:54:00 +0000 (18:54 +0200)
commitc2b15fe27e6a0e42b108111d51acce69628593b4
treea91c6a885559369b2e6bfa1670335d4af02c3556
parentb937dbf2577e0fa3018c562312da7b08bbe72d70
Fortran: ICE, OOM while calculating sizes of derived type array components

gcc/fortran/ChangeLog:

PR fortran/101514
* target-memory.c (gfc_interpret_derived): Size of array component
of derived type can only be computed here for explicit shape.
* trans-types.c (gfc_get_nodesc_array_type): Do not dereference
NULL pointers.

gcc/testsuite/ChangeLog:

PR fortran/101514
* gfortran.dg/pr101514.f90: New test.
gcc/fortran/target-memory.c
gcc/fortran/trans-types.c
gcc/testsuite/gfortran.dg/pr101514.f90 [new file with mode: 0644]