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

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

https://gcc.gnu.org/g:8aeffc4c9f47dd09ccc6a82d9fae35931414eb4d

commit r10-8137-g8aeffc4c9f47dd09ccc6a82d9fae35931414eb4d
Author: Tobias Burnus <tob...@codesourcery.com>
Date:   Tue May 12 12:07:39 2020 +0200

    [Fortran] Fix/modify present() handling for assumed-shape optional (PR
94672)

    gcc/fortran/
    2020-05-12  Tobias Burnus  <tob...@codesourcery.com>

            Backported from mainline
            2020-05-11  Tobias Burnus  <tob...@codesourcery.com>

            PR fortran/94672
            * trans.h (gfc_conv_expr_present): Add use_saved_decl=false
argument.
            * trans-expr.c (gfc_conv_expr_present): Likewise; use DECL directly
            and only if use_saved_decl is true, use the actual PARAM_DECL arg
(saved
            descriptor).
            * trans-array.c (gfc_trans_dummy_array_bias): Set local 'arg.0'
            variable to NULL if 'arg' is not present.
            * trans-openmp.c (gfc_omp_check_optional_argument): Simplify by
checking
            'arg.0' instead of the true PARM_DECL.
            (gfc_omp_finish_clause): Remove setting 'arg.0' to NULL.

    gcc/testsuite/
    2020-05-12  Tobias Burnus  <tob...@codesourcery.com>

            Backported from mainline
            2020-05-11  Jakub Jelinek  <ja...@redhat.com>
                        Tobias Burnus  <tob...@codesourcery.com>

            PR fortran/94672
            * gfortran.dg/gomp/pr94672.f90: New.
            * gfortran.dg/missing_optional_dummy_6a.f90: Update scan-tree.

Reply via email to