Problem in intrinsic.c?

Brooks Moses bmoses@stanford.edu
Fri Sep 29 18:01:00 GMT 2006


François-Xavier Coudert wrote:
> If I read (actually, read and grep) intrinsic.c correctly, I find that
> the list of intrinsics "allowed to be used as actual arguments" is:
[...]
> Could someone confirm or infirm my analysis? And could someone point
> me to the relevant part(s) of the Standard, saying which functions can
> be used as arguments?

F95 standard, Section 12.4.1.2: "If a dummy argument is a dummy 
procedure, the associated actual argument shall be the specific name of 
an external, module, dummy, or intrinsic procedure.  The only intrinsic 
procedures permitted are those listed in 13.13 and not marked with a 
bullet.  If the specific name is also a generic name, only the specific 
procedure is associated with the dummy argument."

In F2003, the relevant sections are 12.4.1.3 and 13.6, but the text is 
the same except for additional comments about procedure pointers.

Your list contains a substantial quantity of procedures not on that 
list, only a few of which are gfortran extensions (ACOSH, etc.) that 
clearly should be allowed.  In particular, ANY and ALL are quite 
definitely not allowed.

- Brooks



More information about the Fortran mailing list