https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107143
--- Comment #4 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:f2339cefd6985e20014f9b0795fb651a96788246 commit r15-7925-gf2339cefd6985e20014f9b0795fb651a96788246 Author: Andre Vehreschild <ve...@gcc.gnu.org> Date: Wed Mar 5 15:18:48 2025 +0100 Fortran: Fix gimplification error for pointer remapping in forall [PR107143] Enhance dependency checking for data pointers to check for same derived type and not only for a type being a derived type. This prevent generation of a descriptor for a function call, that is unsuitable in forall's pointer assignment. PR fortran/107143 gcc/fortran/ChangeLog: * dependency.cc (check_data_pointer_types): Do not just compare for derived type, but for same derived type. gcc/testsuite/ChangeLog: * gfortran.dg/forall_20.f90: New test.