- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
!******************************
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
!******************************
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please report it to Intel Premier Support.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page