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

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

https://gcc.gnu.org/g:290df05524c0a09a55a43050147d216c15f2a901

commit r13-10404-g290df05524c0a09a55a43050147d216c15f2a901
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.
            * 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.

    (cherry picked from commit b1eb6e08939a01a18724d35da3dd0098cb993ab9)

Reply via email to