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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>:

https://gcc.gnu.org/g:51d9ef7747b2dc439f7456303f0784faf5cdb1d3

commit r12-4107-g51d9ef7747b2dc439f7456303f0784faf5cdb1d3
Author: Tobias Burnus <tob...@codesourcery.com>
Date:   Mon Oct 4 09:38:43 2021 +0200

    Fortran: Avoid var initialization in interfaces [PR54753]

    Intent(out) implies deallocation/default initialization; however, it is
    pointless to do this for dummy-arguments symbols of procedures which are
    inside an INTERFACE block. รข This also fixes a bogus error for the
attached
    included testcase, but fixing the non-interface version still has to be
done.

            PR fortran/54753

    gcc/fortran/ChangeLog:

            * resolve.c (can_generate_init, resolve_fl_variable_derived,
            resolve_symbol): Only do initialization with intent(out) if not
            inside of an interface block.

Reply via email to