Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28701 Discussions

Number of errors one greater than actual

acar
Beginner
586 Views
When compilation fails on a subroutine, errors are listed in the Output window. In the summary at the bottom f this list the number of errors is always one greater than the number of errors in the list above. I guess it means that there were n errors in the subroutine and if you include the fact that the subroutine compilation failed then there are n+1 errors?
0 Kudos
6 Replies
mecej4
Honored Contributor III
586 Views
If so, an interesting question would be: What happens when n = 0 ?
0 Kudos
acar
Beginner
586 Views
Indeed! .
0 Kudos
Steven_L_Intel1
Employee
586 Views
I've noticed this too - I think it counts the "compilation failed" message as a separate error.
0 Kudos
acar
Beginner
586 Views
It probably also explains why when the number of errors is large the list is truncated to the odd number 31 rather than 30.
0 Kudos
lklawrie
Beginner
586 Views
Not to be off thread topic, but don't forget that CVF would count if the variable name in an "info" or maybe "warning" was Error -- then it would show that the compilation had errors even if it didn't.

my favorite one to explain to my other developers on the team.

Linda
0 Kudos
acar
Beginner
586 Views
So with IVF we are better than with CVF .... but still not perfect?
0 Kudos
Reply