(j3.2006) error in CD 1539-1
Robert Corbett
Robert.Corbett
Sun Apr 20 08:13:46 EDT 2008
Paragraph 2 of Section 5.3.9 of CD 1539-1 states
If an external procedure or dummy procedure is used as
an actual argument or is the target of a procedure
pointer assignment, it shall be declared to have the
EXTERNAL attribute.
Paragraph 4 of Section 12.5.2.9 states
If an external procedure name or a dummy procedure
name is used as an actual argument, its interface
shall be explicit or it shall be explicitly declared
to have the EXTERNAL attribute.
The statement from Section 5.3.9 is clearly deficient. I
suggest rewriting it as
If an external procedure name or dummy procedure
name is the target of a procedure assignment, it
shall be declared to have the EXTERNAL attribute.
Deleting the statement about actual arguments from
Section 5.3.9 eliminates the possibility of conflict with
the statement in Section 12.5.2.9. If it is considered
important to state the requirement in Section 5.3.9 as
well as in Section 12.5.2.9, a note describing the
requirement and referencing Section 12.5.2.9 could be
added to Section 5.3.9.
The same defect in present in the Fortran 2003 standard,
but not in the Fortran 95 standard.
Bob Corbett
More information about the J3
mailing list