(j3.2006) C_PTR and C_FUNPTR
Michael Ingrassia
michaeli at ranma.sfbay.sun.com
Tue Dec 16 18:52:05 EST 2008
Does the standard actually require that C_PTR and C_FUNPTR be
*different* derived types? Put another way, is the following code
guaranteed to be standard conforming:
INTERFACE S
SUBROUTINE S1(X)
USE ISO_C_BINDING
TYPE(C_PTR) :: X
END SUBROUTINE S1
SUBROUTINE S2(X)
USE ISO_C_BINDING
TYPE(C_FUNPTR) :: X
END SUBROUTINE S2
END INTERFACE
END
As we all know, two types whose names are spelled differently aren't
necessarily different types in the general case.
--Michael I.
More information about the J3
mailing list