]> 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>
Sun, 18 Dec 2022 19:41:08 +0000 (20:41 +0100)
commit7a9741d7322357c4e777450891e43db27e067817
treeb8040387301cdd365d10e33cef655e2f36605da4
parent3f578d958a1920cee402d0471805502f39e36e7d
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.

(cherry picked from commit 01254aa2eb766c7584fd047568d7277d4d65d067)
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr107872.f90 [new file with mode: 0644]