[Bug fortran/104048] ICE with recursively defined derived type

"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104048

--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Paul Thomas <[email protected]>:

https://gcc.gnu.org/g:08d27169190cd6ac183bf1d67478b69c456bbf13

commit r16-9535-g08d27169190cd6ac183bf1d67478b69c456bbf13
Author: Paul Thomas <[email protected]>
Date:   Wed Aug 12 17:24:12 2026 +0100

    Fortran: Fix ICE with recursively defined derived type [PR104048]

    2026-08-14  Paul Thomas  <[email protected]>

    gcc/fortran
            PR fortran/104048
            * trans-array.cc (structure_alloc_comps): Extend the wrapper
            mechanism for same type allocatable arrays to scalars, creating
            descriptors for them and passing to the deep copy library fcn..

    gcc/testsuite/
            PR fortran/104048
            * gfortran.dg/recursive_alloc_comp_7.f90: New test.
            * gfortran.dg/recursive_alloc_comp_8.f90: New test.

    (cherry picked from commit 4f1c60804531475ad86206f3cc298da6ce001d83)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.