]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix gimplification error on assignment to pointer [PR103391]
authorAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 4 Mar 2025 11:56:20 +0000 (12:56 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 4 Mar 2025 15:14:15 +0000 (16:14 +0100)
commit04909c7ecc023874c3444b85f88c60b7b7cc7778
tree00c62911d340a0862ba1d611fd222174e3813206
parentc84be624e079cd748df93a3dc0b5168865fefee9
Fortran: Fix gimplification error on assignment to pointer [PR103391]

PR fortran/103391

gcc/fortran/ChangeLog:

* trans-expr.cc (gfc_trans_assignment_1): Do not use poly assign
for pointer arrays on lhs (as it is done for allocatables
already).

gcc/testsuite/ChangeLog:

* gfortran.dg/assign_12.f90: New test.
gcc/fortran/trans-expr.cc
gcc/testsuite/gfortran.dg/assign_12.f90 [new file with mode: 0644]