View previous topic :: View next topic |
Author |
Message |
DanRRight

Joined: 10 Mar 2008 Posts: 2694 Location: South Pole, Antarctica
|
Posted: Tue May 16, 2023 7:50 am Post subject: Error reporting |
|
|
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 |
|
 |
mecej4
Joined: 31 Oct 2006 Posts: 1814
|
Posted: Wed May 17, 2023 3:01 pm Post subject: |
|
|
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 |
|
 |
DanRRight

Joined: 10 Mar 2008 Posts: 2694 Location: South Pole, Antarctica
|
Posted: Wed May 17, 2023 5:44 pm Post subject: |
|
|
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 |
|
 |
|