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

--- Comment #20 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <[email protected]>:

https://gcc.gnu.org/g:b70bd691cfd77b4d7a453031599bb6f1d48aedf1

commit r15-8945-gb70bd691cfd77b4d7a453031599bb6f1d48aedf1
Author: Harald Anlauf <[email protected]>
Date:   Wed Mar 26 22:04:39 2025 +0100

    Fortran: fix bogus recursion with DT default initialization [PR118796]

            PR fortran/118796

    gcc/fortran/ChangeLog:

            * resolve.cc: Do not apply default initialization to a derived-type
            function result if the resolved function is use-associated.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/derived_result_4.f90: New test.

Reply via email to