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

--- Comment #7 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:3b742809991d80ffd3baf9705ff8372209e5d629

commit r16-7814-g3b742809991d80ffd3baf9705ff8372209e5d629
Author: Harald Anlauf <[email protected]>
Date:   Tue Feb 24 20:58:53 2026 +0100

    Fortran: deferred-length character results and -fno-automatic [PR78187]

    As the SAVE attribute cannot be specified for dummy variables and function
    results (F2023:C862), the option -fno-automatic should not treat them as
    automatically saved.

            PR fortran/78187

    gcc/fortran/ChangeLog:

            * trans-decl.cc (gfc_trans_deferred_vars): An initialization block
            shall be generated for deferred-length character results even
            when -fno-automatic is given.

    gcc/testsuite/ChangeLog:

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

Reply via email to