https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117434
--- Comment #18 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- (In reply to Jerry DeLisle from comment #17) > (In reply to Damian Rouson from comment #16) > > Is there a chance of this fix being backported to the 14 branch? If not, > > then I assume this issue can be marked as resolved. Unfortunately, however, > > I'm currently blocked from using 15 by an another issue. I'll try to > > isolate and report the issue. > > I will see if it will actually backport easily without other dependencies. I > will need a day or two to check. git gcc-backport was clean and regression test all good. I will try to push this tonight if no objections. commit c6e2392dab04b9b5be13779feccbd4630055f907 (HEAD -> releases/gcc-14) Author: Paul Thomas <pa...@gcc.gnu.org> Date: Wed Nov 6 07:17:25 2024 +0000 Fortran: F2008 passing of internal procs to a proc pointer [PR117434] 2024-11-06 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/117434 * interface.cc (gfc_compare_actual_formal): Skip 'Expected a procedure pointer error' if the formal argument typespec has an interface and the type of the actual arg is BT_PROCEDURE. gcc/testsuite/ PR fortran/117434 * gfortran.dg/proc_ptr_54.f90: New test. This is temporarily compile-only until one one seven four five five is fixed. * gfortran.dg/proc_ptr_55.f90: New test. * gfortran.dg/proc_ptr_56.f90: New test. (cherry picked from commit 4dbf4c0fdb188e1c348688de91e010f696cd59fc)