]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: ICE on recursive derived types with allocatable components [PR107872]
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 9 Dec 2022 21:13:45 +0000 (22:13 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 9 Dec 2022 21:19:26 +0000 (22:19 +0100)
commit01254aa2eb766c7584fd047568d7277d4d65d067
tree8726f23de1cf1d42aa0c37e0b78c2dde810c6384
parentb2e1c49b4a4592f9e96ae9ece8af7d0e6527b194
Fortran: ICE on recursive derived types with allocatable components [PR107872]

gcc/fortran/ChangeLog:

PR fortran/107872
* resolve.cc (derived_inaccessible): Skip over allocatable components
to prevent an infinite loop.

gcc/testsuite/ChangeLog:

PR fortran/107872
* gfortran.dg/pr107872.f90: New test.
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr107872.f90 [new file with mode: 0644]