Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Debugger problem with assumed-length CHARACTER dummy arguments with ALLOCATABLE actual in Intel Fortran Compiler 15

$
0
0

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?


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>