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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andre Vehreschild <ve...@gcc.gnu.org>:

https://gcc.gnu.org/g:751b37047b2ad3a358d41ac792487b42430e9901

commit r15-7712-g751b37047b2ad3a358d41ac792487b42430e9901
Author: Andre Vehreschild <ve...@gcc.gnu.org>
Date:   Tue Feb 25 14:17:16 2025 +0100

    Fortran: Remove SAVE_EXPR on lhs in assign [PR108233]

    With vectorial shaped datatypes like e.g. complex numbers, fold_convert
    inserts a SAVE_EXPR.  Using that on the lhs in an assignment prevented
    the update of the variable, when in a coarray.

            PR fortran/108233

    gcc/fortran/ChangeLog:

            * trans-expr.cc (gfc_trans_assignment_1): Remove SAVE_EXPR on lhs.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/coarray/complex_1.f90: New test.

Reply via email to