Generic type-bound procedures with procedure arguments
问题 I am trying to write a generic type-bound procedure that takes different callback functions as parameters. When compiling following code (with ifort 12.1.3) I get the warning below: module test type :: a_type contains procedure :: t_s => at_s procedure :: t_d => at_d generic :: t => t_s,t_d end type a_type abstract interface integer function cb_s(arg) real(4) :: arg end function cb_s integer function cb_d(arg) real(8) :: arg end function cb_d end interface contains subroutine at_s(this,cb)