ISO_C_BINDING module and c_funptr status

I have version 7.2-1 and I’m trying to compile a code with the c_funptr type attribute:

PROGRAM main
USE ISO_C_BINDING

TYPE(C_PTR) :: f0
TYPE(C_FUNPTR) :: f1

END PROGRAM main

and it gives the error:

PGF90-S-0155-Derived type has not been declared - c_funptr

I see its entry in the iso_c_binding module:

S 594 0 0 0 0 8 1 582 4743 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 582 0 0 0 0 c_funptr

but I guess it is not yet implemented, is there a time frame for implementing c_funptr?

g95, gfortran, and ifort all compile the code fine.

Thanks.

Hi Breitenfeld,

We have been incrementally adding F2003 features however have not yet added support for C_FUNPTR. It is on our current list of features to be added and hopefully will be available with the 8.0 release later this year.

  • Mat

Looking forward to 8.0 then.

Thanks.