Hi,
Absoft claims that this interface is ambiguous:
INTERFACE C_LOC_Function
MODULE PROCEDURE C_LOC_Function_i_sp
MODULE PROCEDURE C_LOC_Function_i_dp
END INTERFACE
where the aformentioned procedures have interfaces:
FUNCTION C_LOC_Function_i_sp (X) RESULT (c_pointer)
INTEGER (i_sp), EXTERNAL :: X
INTEGER (KIND=C_ADDRESS) :: c_pointer
END FUNCTION
FUNCTION C_LOC_Function_i_dp (X) RESULT (c_pointer)
INTEGER (i_dp), EXTERNAL :: X
INTEGER (KIND=C_ADDRESS) :: c_pointer
END FUNCTION
I recall J3 recently discussed interps related to this. All my other
compilers accept it just fine.
Is the above interface in fact legal in F95?
Thanks,
Aleksandar
|