https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109500
--- Comment #20 from anlauf at gcc dot gnu.org --- Created attachment 54894 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54894&action=edit Extended testcase Testcase for Steve's variant of the diagnostic, checking that we also catch procedure pointers with the same interface. This testcase has been cross-checked with NAG. The missing diagnostic with Intel has been acknowledged, see: https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-function-result-should-not-have-allocatable/m-p/1478494#M166138 I think we can proceed so that people can fix their codes in time for gcc-14.