forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SDBG fails to display named result variable in function

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
mecej4



Joined: 31 Oct 2006
Posts: 1884

PostPosted: Sun Dec 04, 2016 8:14 pm    Post subject: SDBG fails to display named result variable in function Reply with quote

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
View user's profile Send private message
Robert



Joined: 29 Nov 2006
Posts: 444
Location: Manchester

PostPosted: Mon Dec 05, 2016 12:31 am    Post subject: Reply with quote

Thank you for reporting it.
Back to top
View user's profile Send private message Visit poster's website
silverfrost
Site Admin


Joined: 29 Nov 2006
Posts: 191
Location: Manchester

PostPosted: Tue Dec 13, 2016 4:13 pm    Post subject: Reply with quote

This is fixed in the next release
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group