[Bug fortran/102901] ICE (segfault) when compiling pdt_13.f03 with -fcheck=all in gfc_check_pdt_dummy -> structure_alloc_comps

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 7 12:30:56 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102901

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

https://gcc.gnu.org/g:05d3dd6010a53e93e1693001eba4c88a7face53b

commit r16-4269-g05d3dd6010a53e93e1693001eba4c88a7face53b
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Tue Oct 7 13:30:43 2025 +0100

    Fortran: Fix ICE in pdt_1[3-5].f03 with -fcheck=all [PR102901]

    2025-10-07  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/102901
            * trans-array.cc (structure_alloc_comps): Do not use
            gfc_check_pdt_dummy with pointer or allocatable components.

    gcc/testsuite/
            PR fortran/102901
            * gfortran.dg/pdt_56.f03: Copy of pdt_13.f03 compiled with
            -fcheck=all.


More information about the Gcc-bugs mailing list