(j3.2006) kind conversion for intent(in), value dummy arguments

Craig Rasmussen crasmussen
Mon Sep 15 18:51:32 EDT 2008


An issue has come up in defining MPI 3.0 Fortran interfaces.  If the  
dummy argument is declared as,

      integer(C_INT), intent(in), value :: count

can an actual argument of a different kind always be associated with  
the dummy declared above?  Section 12.5.2.3 paragraph 4 states that:

A present dummy argument with the VALUE attribute becomes argument  
associated with a de?nable anonymous data ob ject whose initial value  
is the value of the actual argument.

It seems to me that if the anonymous data object is allowed to be  
assigned/defined with a different kind than is actually is, that then  
the argument association can proceed without a problem.

If the above were allowable, the MPI routines could be declared with  
integer(C_INT) dummies, but existing codes would not have to change.

Regards,
Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://j3-fortran.org/pipermail/j3/attachments/20080915/344edac8/attachment.html 



More information about the J3 mailing list