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

--- Comment #9 from CVS 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:413ac2c8608cd0378955af27f69e45274b025b32

commit r14-5111-g413ac2c8608cd0378955af27f69e45274b025b32
Author: Harald Anlauf <anl...@gmx.de>
Date:   Wed Nov 1 22:55:36 2023 +0100

    Fortran: passing of allocatable/pointer arguments to OPTIONAL+VALUE
[PR92887]

    gcc/fortran/ChangeLog:

            PR fortran/92887
            * trans-expr.cc (conv_cond_temp): Helper function for creation of a
            conditional temporary.
            (gfc_conv_procedure_call): Handle passing of allocatable or pointer
            actual argument to dummy with OPTIONAL + VALUE attribute.  Actual
            arguments that are not allocated or associated are treated as not
            present.

    gcc/testsuite/ChangeLog:

            PR fortran/92887
            * gfortran.dg/value_optional_1.f90: New test.

Reply via email to