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 

Error reporting

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



Joined: 10 Mar 2008
Posts: 2694
Location: South Pole, Antarctica

PostPosted: Tue May 16, 2023 7:50 am    Post subject: Error reporting Reply with quote

During last year FTN95 started to report numerous false positives. It can tell you that you made an error in the absolutely legit place confusing you. To start this behavior you just need to make any other error and you will get bunch of other not valid ones. Typically the bad place is also reported somewhere down the file 1000 lines below or so but today i just forgot () in declaration of function like this

integer function ReadInitialSettings ()

and got two non-existent errors in report and no actual error. This is scary. Some day you will get an error report and will not find actual error in days (ones or twice in my past career i searched for an error for entire month). The frequent backups and frequent compilations becomes a necessity

Do others noticed such behavior of FTN95 lately ?
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1814

PostPosted: Wed May 17, 2023 3:01 pm    Post subject: Reply with quote

You should see fewer such "false error reports" if your sources are free form rather than the old F77 fixed form.

In fixed form, if you left out the '()' in the function declaration, the compiler could conclude that the declaration is
Code:
integer functionReadInitialSettings

In other words, that this is an integer variable declaration, and that this source line is starting a second main program unit.

To do anything about your rather general but vague complaint, it is probably necessary for you to collect and submit reproducers that are sufficient to make the compiler exhibit incorrect/implausible error messages.
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2694
Location: South Pole, Antarctica

PostPosted: Wed May 17, 2023 5:44 pm    Post subject: Reply with quote

The cases I was working with last year were free form sources.
One such case was fixed last year. Took me days to prepare a demo
Back to top
View user's profile Send private message
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