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

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

https://gcc.gnu.org/g:5e2d7563a8db0e1362d8b42faff8fc6eadda6f56

commit r16-9248-g5e2d7563a8db0e1362d8b42faff8fc6eadda6f56
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