]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix passing of inquiry ref of complex array to TRANSFER [PR102891]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 6 May 2025 18:59:48 +0000 (20:59 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 10 May 2025 20:46:56 +0000 (22:46 +0200)
commit94fa992b60e53dcf807fc7055ab606d828b931d8
tree330a7e5a38cc61ae0380845d11aecdcd97b967f8
parent993aa0bd28722c7f01fb8310f1c79814aef217ed
Fortran: fix passing of inquiry ref of complex array to TRANSFER [PR102891]

PR fortran/102891

gcc/fortran/ChangeLog:

* dependency.cc (gfc_ref_needs_temporary_p): Within an array
reference, inquiry references of complex variables generally
need a temporary.

gcc/testsuite/ChangeLog:

* gfortran.dg/transfer_array_subref.f90: New test.
gcc/fortran/dependency.cc
gcc/testsuite/gfortran.dg/transfer_array_subref.f90 [new file with mode: 0644]