Declaring INTENT here is required because the subroutine is PURE. You are
right that being ELEMENTAL does not require an INTENT spec, but if you don't
say IMPURE, ELEMENTAL gives you PURE ELEMENTAL.
Cheers,
--
..............Malcolm Cohen, NAG Oxford/Tokyo.
-----Original Message-----
From: Fortran 90 List [mailto:[log in to unmask]] On Behalf Of
Anton Shterenlikht
Sent: Wednesday, August 23, 2017 1:07 AM
To: [log in to unmask]
Subject: [COMP-FORTRAN-90] C.2.6 Final subroutines example quesions
N2134 C.2.6p1 Final subroutines
(seems unchanged from 10-00r1 C.1.7p1).
Is it significant that only final subroutine finalize_t2e declares intent
for its dummy argument?
The other 2 subroutines do not
declare the intent.
Is declaring intent here necessary because this subroutine is elemental?
I cannot see any rule on this
in N2134 15.8 Elemental procedures.
Anton
|