PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Fortran - disallow implicit declaration

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
LeviBarnes



Joined: 03 Oct 2012
Posts: 9

PostPosted: Thu Apr 11, 2013 1:13 pm    Post subject: Fortran - disallow implicit declaration Reply with quote

Hi forums,
Is there a way to disallow implicit variable declaration in pgfortan? Something like -fimplicit-none in gfortran.
-Levi
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 4996
Location: The Portland Group Inc.

PostPosted: Thu Apr 11, 2013 1:20 pm    Post subject: Reply with quote

Hi Levi,

There's no compiler flag since implicit typing can have more specifications than just none. You will need to explicitly set this in your code using the "IMPLICIT NONE" statement.

- Mat
Back to top
View user's profile
LeviBarnes



Joined: 03 Oct 2012
Posts: 9

PostPosted: Thu Apr 11, 2013 1:57 pm    Post subject: Reply with quote

Thanks, Mat.

I find that -Mdclchk does what I need from the command line as well.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
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, 2002 phpBB Group