Using Visual Studio 9 on Windows 64 with Intel Fortran 10.1
I have a C function calling Fortran, passing a literal string "xxxxxx" (not null terminated) and the hidden passed length arg 6.
Fortran gets it right since the debugger recognizes it's a character(6) var and has the correct string, but when I try to assign another Fortran character*6 var to it I get the oddest error.
forrtl: severe (408): fort: (4): Variable Vstring has substring ending point 6 which is greater than the variable length 6
-- C call --
SETPR("abcdef",6);
-- Fortran subroutine --
subroutine setpr(vstring)
character*(*) vstring
character*6 prd
prd(1:6) = vstring(1:6)
return
end