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

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

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

commit r17-2198-gb1eb6e08939a01a18724d35da3dd0098cb993ab9
Author: Jerry DeLisle <[email protected]>
Date:   Mon Jul 6 18:30:05 2026 -0700

    fortran: [PR103367] Followup patch to fix related test cases

            PR fortran/103367

    gcc/fortran/ChangeLog:

            * expr.cc (simplify_const_ref): Hoist the call to
            remove_subobject_ref up a level.
            * primary.cc (gfc_match_rvalue): Don't copy the value expr
            if the type is an EXPR_VARIABLE.
            not
            * trans-array.cc (gfc_conv_array_initializer): Only copy the expr
            value if it does not have a ref.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/pr103367_2.f90: New test.
            * gfortran.dg/pr103367_3.f90: New test.
            * gfortran.dg/pr103367_4.f90: New test.

Reply via email to