[Bug fortran/97818] PDT Parameterized Derived Type fails with SIGABRT at -O1

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 12 11:21:43 GMT 2026


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

--- Comment #5 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:9ff20883d44ef568805a4a8f731977e77a1c9459

commit r16-8035-g9ff20883d44ef568805a4a8f731977e77a1c9459
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Thu Mar 12 11:21:23 2026 +0000

    Fortran: gfortran PDT component access [PR97818]

    2026-03-12  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/97818
            * trans-decl.cc (gfc_trans_deferred_vars): Make sure that the
            result symbol is referenced before allocating parameterized
            components.

    gcc/testsuite/
            PR fortran/97818
            * gfortran.dg/pdt_88.f03: New test.


More information about the Gcc-bugs mailing list