replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - 'USE, INTRINSIC ::' vs 'USE'
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

'USE, INTRINSIC ::' vs 'USE'

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Kenneth_Smith



Joined: 18 May 2012
Posts: 730
Location: Hamilton, Lanarkshire, Scotland.

PostPosted: Wed Oct 30, 2024 12:11 pm    Post subject: 'USE, INTRINSIC ::' vs 'USE' Reply with quote

The following program compiles and runs as expected with FTN95.
Code:
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.

Code:
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?
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8061
Location: Salford, UK

PostPosted: Wed Oct 30, 2024 2:19 pm    Post subject: Reply with quote

Ken

INTRINSIC may now be used (I tested against v9.04 and v9.05). To my knowledge there are no side effects either way.
Back to top
View user's profile Send private message AIM Address
Kenneth_Smith



Joined: 18 May 2012
Posts: 730
Location: Hamilton, Lanarkshire, Scotland.

PostPosted: Thu Oct 31, 2024 9:25 am    Post subject: Reply with quote

Thanks Paul, I am a little behind the times at V9.03 - I will fix that!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group