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

Daniel C Chen cdchen
Tue Jul 9 16:07:57 EDT 2013



Hello,

In F2003, PARAMETER cannot be specified for a dummy argument by

C514 (R501) 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?

Thanks,

Daniel

XL Fortran Development - IBM Toronto Software Lab
Phone: 905-413-3056
Tie: 969-3056
Email: cdchen at ca.ibm.com
http://www.ibm.com/software/awdtools/fortran/xlfortran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.j3-fortran.org/pipermail/j3/attachments/20130709/e8a863a2/attachment.html 



More information about the J3 mailing list