View previous topic :: View next topic |
Author |
Message |
mecej4
Joined: 31 Oct 2006 Posts: 1895
|
Posted: Sun Dec 04, 2016 8:14 pm Post subject: SDBG fails to display named result variable in function |
|
|
When the active line is within a function declared with a RESULT(<var>) clause, the result variable is displayed by SDBG as a "NULL pointer". For example, use the program
Code: | program tst
implicit none
!
integer :: ix, iy
!
ix = 7
iy = sqr(ix)
write(*,*) ix,iy
CONTAINS
function sqr(ix) result (s)
integer :: ix, s
s = ix*ix
return
end function
end program |
and place a breakpoint at the "RETURN" statement. When the breakpoint is hit, examine the Variables pane for the value of S. |
|
Back to top |
|
|
Robert
Joined: 29 Nov 2006 Posts: 449 Location: Manchester
|
Posted: Mon Dec 05, 2016 12:31 am Post subject: |
|
|
Thank you for reporting it. |
|
Back to top |
|
|
silverfrost Site Admin
Joined: 29 Nov 2006 Posts: 191 Location: Manchester
|
Posted: Tue Dec 13, 2016 4:13 pm Post subject: |
|
|
This is fixed in the next release |
|
Back to top |
|
|
|