Sorry if this is a really stupid question.
I am trying to track down a bug in some C++. The code works in debug mode, but when I apply optimizations with -03 in the makefile it gives incorrect results.
Is it possible to turn off the optimizations for certain functions in the source so that I can locate which routine it is that is broken?
I'm using g++ with -std=c++11