Is random_number a pure intrinsic

Is random_number a pure intrinsic

Hi

Can someone tell me if the random_number intrinsic subroutine is supposed to be pure? The compiler complains when I use it in a pure procedure. I have used it like that with CVF, fujitsu, lahey-fujitsu and Sun compilers in the past and none of them have complained.

Thanks alot,

Paul

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

No, RANDOM_NUMBER is not pure. CVF not detecting this was a bug. The only intrinsic subroutine which is PURE is MVBITS.

Steve

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today