>
> Neil Carlson writes about a compiler which insists that INTENT match for
> dummy procedures. Section 12.4.1.2 of the F95 standard (Actual arguments
> associated with dummy procedures) says:
>
> "If the interface of the dummy procedure is explicit, the characteristics
> listed in 12.2 shall be the same for the associated actual procedure and the
> corresponding dummy procedure, except that a pure actual procedure may be
> associated with a dummy procedure that is not pure and an elemental
> intrinsic actual procedure may be associated with a dummy procedure that is
> not elemental."
>
> Section 12.2 does not include INTENT among the "characteristics" of an
> argument, therefore a mismatch in INTENT is not an error.
I think you have missed 12.2.1.1 which explicitly mentions intent.
There is no requirement on the compiler to detect intent
mismatch, but it is my opinion that detecting it is correct.
John Reid.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|