https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102891
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:94fa992b60e53dcf807fc7055ab606d828b931d8 commit r16-518-g94fa992b60e53dcf807fc7055ab606d828b931d8 Author: Harald Anlauf <anl...@gmx.de> Date: Tue May 6 20:59:48 2025 +0200 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.