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

cannot view character(*) arrays in debugger

forall
Beginner
591 Views
It appears the debugger does not display arrays of strings of assumed length (len=*).
Eg, in the example below when I try to see the content of sv I get: "invalid debug info".
The problem goes away if I declare "sv" as character(10).
hope this can be fixed.
thanks~dmitri

!***************************
module m
implicit none
contains
!---
subroutine test(sv)
character(*),intent(in)::sv(:)
integer::i
do i=1,size(sv)
write(*,*)"'"//sv(i)//"'"
enddo
endsubroutine test
!---
endmodule m
!*****************************
subroutine sample_subroutine()
use m,only:test
implicit none
integer,parameter::n=2
character(10)::str(n)
str=(/"v1","v2"/)
call test(str)
endsubroutine sample_subroutine
!******************************
0 Kudos
1 Reply
Steven_L_Intel1
Employee
591 Views
Please report it to Intel Premier Support.
0 Kudos
Reply