Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Impure instrinsics

Andrew_Smith
Valued Contributor I
338 Views
Steve, recently we discussed the impure move_alloc and you said it was a mistake and should be pure. Could Intel add the date and time functions to the todo list for purifying? These have no side effects I am aware of so should be pure.

Andy Smith
0 Kudos
1 Reply
Steven_L_Intel1
Employee
338 Views
The standard explicitly calls out MOVE_ALLOC (and MVBITS) as PURE. It does not do so for DATE_AND_TIME nor any other intrinsic subroutine. I would argue that DATE_AND_TIME ought not to be pure because it relies on external state.
0 Kudos
Reply