This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem in intrinsic.c?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]