Bug #11745 2007-08-12 23:01
bughunter2
Code::Blocks ignores compilation error
When compiling, if there were errors caused by the "pedantic-errors" flag, the errors are output as warnings.
Because of this, Code::Blocks "thinks" everything went fine and ignores the EXIT_FAILURE exit-code from the compiler, starting up your old build, and so it also doesn't open the messages pane when it was set to auto-hide.
- Category
- Application::WrongBehaviour
- Group
- Status
- Open
- Close date
- Assigned to
History
May be a similar error :
In a small fortran program like this one :
IMPLICIT NONE
REAL T(5)
T(1.0) = 1234
WRITE(*,*) T(1)
STOP
END
compilation and execution with g77 is correct (but should it be ?).
With g95 or gfortran, there is an error at compile time because a real index in line 3 is not correct.
But in the log window you have :
Process terminated with status 1
0 errors, 0 warnings.
status 1 is OK, but 0 errors is not OK : There is one error detected by compiler.
gd_on
Actually I think C::B doesn't detect the errors since they are output as warnings, but since I passed '-Werror' they're treated as errors by GCC. Still C::B seems to ignore the exit code of the compiler, and says "Build finished: 0 errors, XX warnings".