PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

pgfortran compiler cannot find intrinsic routine

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



Joined: 19 Apr 2012
Posts: 7

PostPosted: Tue Jun 19, 2012 2:04 pm    Post subject: pgfortran compiler cannot find intrinsic routine Reply with quote

Hi,

I just ran into a bug with your pgfortran 12.5 compiler. I was adding a section to get a command line argument, but the compiler claims it cannot find the intrinsic to do so. I therefore took the example from your Fortran manual, and it compiles just fine. However, when I add a line to get the entire command line, then it cannot find the argument intrinsic.

Error:

ILM file: can't find intrinsic get_command_argument
ILM file line 165: unknown symbol operand 507
PGF90-F-0000-Internal compiler error. Errors in ILM file 2 (ttt.f: 23)


The simple test code is below:

**************************************************

program test_get_command_argument
INTEGER :: i
CHARACTER(len=32) :: arg
i = 0

c works with the next 2 lines commented out

CALL get_command(arg)
WRITE (*,*) TRIM(arg)

c when those lines are present, the following error occurs:

c ILM file: can't find intrinsic get_command_argument
c ILM file line 165: unknown symbol operand 507
c PGF90-F-0000-Internal compiler error. Errors in ILM file 2 (ttt.f: 23)

DO
CALL get_command_argument(i, arg)
IF (LEN_TRIM(arg) == 0) EXIT
WRITE (*,*) TRIM(arg)
i = i+1
END DO
END PROGRAM

**********************************************************

I am running v12.5 on a Windows7-64bit system and just doing a command line compile. No options are needed to get the error.

-alan
Back to top
View user's profile
toepfer



Joined: 04 Dec 2007
Posts: 50

PostPosted: Tue Jun 19, 2012 5:28 pm    Post subject: Reply with quote

Thanks for the test case. This is certainly a bug and will be fixed in the next release of the compiler.
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 © phpBB Group