I frequently encounter bugs that only occur in the release version. When I run my fortran program in debug mode I will not get an error. I have had to resort to debugging by putting print statements in release mode - ouch! Does anyone know why this happens and what can be done about it?
For more complete information about compiler optimizations, see our Optimization Notice.