The passed-object dummy argument A cannot be ALLOCATABLE according to constraints C453 (F03), C456 (F08), C461(F15):
6: type AA
7: integer :: i
8: procedure(foo), pointer :: funct
9: end type
[...]
22: contains
23: function foo(A)
24: class(AA), allocatable :: A
$ nagfor -kind=byte proc_ptr_47.f90
NAG Fortran Compiler Release 6.1(Tozai) Build 6144
Error: proc_ptr_47.f90, line 8: Passed-object dummy argument A of procedure pointer component FUNCT of type AA is ALLOCATABLE
The passed-object dummy argument
A
cannot be ALLOCATABLE according to constraints C453 (F03), C456 (F08), C461(F15):