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 

Request undefined variables be named when detected

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



Joined: 31 Oct 2006
Posts: 1335

PostPosted: Sat Feb 15, 2020 2:17 pm    Post subject: Request undefined variables be named when detected Reply with quote

In error messages following the detection of an undefined variable being used, when /checkmate was used to compile the program being run, only the line numbers and routine names are printed out. It would be very helpful if the particular variable responsible were named in the error message.

Here is an example. The buggy line of code:
Code:
IF (KA.LE.N-M+1) GA(KA+M-1)=GA(KA+M-1)+0.25D 0*PAR*(+A1*GA3(5)-A2*GA4(4))


Here is the error message that is printed at present when the bug is detected and the program is terminated:

Code:
Reference to undefined variable, array element or function result (/UNDEF) at address 5c767f

Within file teql.exe
in TAGU18 in line 5815, at address 22ad5

...more traceback lines...


Contrast this with the message from NAG Fortran for the same bug:

Code:
Runtime Error: tssubs.f, line 5815: Reference to undefined variable GA(KA+M-1)


Thanks.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6404
Location: Salford, UK

PostPosted: Sat Feb 15, 2020 4:38 pm    Post subject: Reply with quote

Thanks for the feedback. I have made a note of this.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6404
Location: Salford, UK

PostPosted: Tue Feb 25, 2020 2:19 pm    Post subject: Reply with quote

This suggestion has been adopted and work is in progress. The aim is to implement this for 64 bits and notification for simple variables is already in place (for the next release).
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Suggestions 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