[J3] Polymorphic C_LOC actual argument pointer-associated with an interoperable type: conforming?
Bill Long
longb at cray.com
Wed May 23 14:23:24 EDT 2018
> On May 22, 2018, at 9:02 PM, Malcolm Cohen via J3 <j3 at mailman.j3-fortran.org> wrote:
>
> (both C_F_POINTER and C_LOC effectively prohibit polymorphic arguments)
C710 seems to allow assumed-type arguments to C_LOC() [a special case that was intentionally allowed], and an assumed-type entity is an unlimited polymorphic entity. Whereas the specification for C_LOC() in clause 18 seems to disallow polymorphic arguments. Would Damian’s program be conforming if the CLASS(*) declarations are changed to TYPE(*)?
Cheers,
Bill
Bill Long longb at cray.com
Principal Engineer, Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9143
Cray Inc./ 2131 Lindau Lane/ Suite 1000/ Bloomington, MN 55425
More information about the J3
mailing list