Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Re: PURE random curiosity

Jugoslav_Dujic
Valued Contributor II
398 Views
RANDOM_NUMBER is one of rare (only?) non-PURE intrinsics; thus, calling it from a user-written PURE procedure is illegal. If the compiler allows it, it seems that you have discovered a bug in it (btw, you seem to be doing well in this area recently :-)).

Jugoslav
0 Kudos
1 Reply
Steven_L_Intel1
Employee
398 Views
MVBITS is the only PURE intrinsic subroutine. I'll write up a bug report about the compiler not flagging calls to RANDOM_NUMBER (or any other non-PURE intrinsic.)

Steve
0 Kudos
Reply