https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98454
--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:b222122d4e93de2238041a01b1886c7dfd9944da commit r15-3323-gb222122d4e93de2238041a01b1886c7dfd9944da Author: Harald Anlauf <anl...@gmx.de> Date: Thu Aug 29 22:17:07 2024 +0200 Fortran: default-initialization of derived-type function results [PR98454] gcc/fortran/ChangeLog: PR fortran/98454 * resolve.cc (resolve_symbol): Add default-initialization of non-allocatable, non-pointer derived-type function results. gcc/testsuite/ChangeLog: PR fortran/98454 * gfortran.dg/alloc_comp_class_4.f03: Remove bogus pattern. * gfortran.dg/pdt_26.f03: Adjust expected count. * gfortran.dg/derived_result_3.f90: New test.