]> 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)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 9 Mar 2025 08:18:26 +0000 (08:18 +0000)
commitc6b2a359d348e2255cbf5b548540ecd8a5fa5a59
treece0f2150b1a5b01b8329ac010dec472b290a1e98
parent2b9cfa7608aac6481ac555c5702de080c76bc442
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.

(cherry picked from commit 04909c7ecc023874c3444b85f88c60b7b7cc7778)
gcc/fortran/trans-expr.cc
gcc/testsuite/gfortran.dg/assign_12.f90 [new file with mode: 0644]