Consider the simple code shown below. The debugger hover and watch functionality in Visual Studio doesn't show the correct value for the assumed-length CHARACTER dummy argument when the actual argument has the ALLOCATABLE attribute. I'm using Intel Fortran Compiler 15, Update 1. But I think the problem is present in compiler 15, initial release too.
MODULE m !.. IMPLICIT NONE CONTAINS SUBROUTINE foo(String) IMPLICIT NONE !.. CHARACTER(LEN=*), INTENT(IN) :: String !.. PRINT *, " foo: String = ", String !.. RETURN END SUBROUTINE foo END MODULE m PROGRAM p USE m, ONLY : foo IMPLICIT NONE !.. CHARACTER(LEN=:), ALLOCATABLE :: s !.. s = "Hello World!" CALL foo(s) !.. STOP END PROGRAM p
Is this a known issue? Any fix for this?