I am converting ifort code to PGI Community Edition 17.10 and I have a problem:
This piece of code tries to write argument#1 into cline and is doing a test print.
Compiled with : pgfortran -c -Mbackslash test.f90 program test character*512 cline ... CALL get_command_argument(1,cline,ipathexelen,istat) print *,'PGI CALL get_command_argument(1,cline, ) istat=',istat print *,TRIM(cline)
The print results are (note the odd placement of "):
PGI CALL get_command_argument(1,cline, ) istat= 0
while the command line in task manager looks as:
“C:\test.exe” “D:\TRM\TRM23\exe” “D:\TRM\Support22+Tests22+ADWiz22\Tests23\RS_ChipKit_TRACE” “.more.” “.more.”
I was expecting cline to be “D:\TRM\TRM23\exe”
Is it my fault or a bug?