Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29257 Discussions

getarg intrinisic crashes if "iface:cvf" using latest .048 patch

ipattielgc
Beginner
383 Views
Try this out using "iface:cvf":

! compile with: "iface:cvf"

program Console1
implicit none
integer :: ierr
character(len=16) :: cvar
call getarg(0,cvar,status=ierr)
print*,cvar,ierr
pause
end program Console1

only workaround I've found is to create a "mygetarg", compile with "iface:default", make an interface so I can call it, etc...

I'll report this to Premier support later. I wonder if it is a bug withroutines that have character arguments and optional parameters when compiled with "iface:cvf" ? Hope not, the COMroutines are full of that kind of thing. Ian.

0 Kudos
1 Reply
Steven_L_Intel1
Employee
383 Views
This isn't new in 048, unfortunately. We had an earlier report on it and engineering has it. The bug is specific to certain intrinsics that used to be library routines and has to do with where the string lengths are passed.

Message Edited by sblionel on 04-28-2004 04:37 PM

0 Kudos
Reply