(j3.2006) PARAMETER attribute seems allowed for a dummy data object

Robert Corbett robert.corbett
Tue Jul 9 17:51:25 EDT 2013


On 07/09/13 13:07, Daniel C Chen wrote:
>
> Hello,
>
> In F2003, PARAMETER cannot be specified for a dummy argument by
>
> C514 (R 501) The PARAMETER attribute shall not be specified for a dummy 
> argument, a pointer, an allocatable entity, a function, or an object in a 
> common block.
>
> It seems F2008 removed it and the only constraint  I can find is
>
> C545 An entity with the PARAMETER attribute shall not be a variable, a 
> coarray, or a procedure.
>
> On the other hand, a dummy data object is a data object, and subseuqently it 
>  can be a named constant.
>
> Is there wording in the F2008 that prohibits PARAMETER for a  dummy data object?
>

My first reaction was that a dummy argument data object is a variable (see 
1.3.154 [20:36-38]), so the constraint is adequate.  However, the particular 
case of an INTENT(IN) dummy variable seems to be questionable.

Bob Corbett


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.j3-fortran.org/pipermail/j3/attachments/20130709/aa58af32/attachment.html 



More information about the J3 mailing list