Silverfrost Forums

Welcome to our forums

'USE, INTRINSIC ::' vs 'USE'

30 Oct 2024 11:11 #31664

The following program compiles and runs as expected with FTN95.

program p
use iso_fortran_env, only: dp => real64
print*, dp
end

The alternative “modern” equivalent (I think this is the case) does not compile successfully with FTN95.

program p
use, intrinsic :: iso_fortran_env, only: dp => real64
print*, dp
end

Am I correct in assuming that simply converting the “modern” form to the simpler USE with no reference to INTRINSIC will have no unexpected side effects?

30 Oct 2024 1:19 #31666

Ken

INTRINSIC may now be used (I tested against v9.04 and v9.05). To my knowledge there are no side effects either way.

31 Oct 2024 8:25 #31668

Thanks Paul, I am a little behind the times at V9.03 - I will fix that!

Please login to reply.