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

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

https://gcc.gnu.org/g:251aa524a314faa749b7dd1b7da048e6e6476015

commit r15-7412-g251aa524a314faa749b7dd1b7da048e6e6476015
Author: Paul Thomas <pa...@gcc.gnu.org>
Date:   Fri Feb 7 12:46:44 2025 +0000

    Fortran:  Fix default init of finalizable derived argus [PR116829]

    2025-02-07  Tomáš Trnka  <tr...@scm.com>

    gcc/fortran
            PR fortran/116829
            * trans-decl.cc (init_intent_out_dt): Always call
            gfc_init_default_dt() for BT_DERIVED to apply s->value if the
            symbol isn't allocatable. Also simplify the logic a bit.

    gcc/testsuite/
            PR fortran/116829
            * gfortran.dg/derived_init_7.f90: New test.

Reply via email to