angelo wrote: > Hello, I am new to this group so hello to everybody. > I start with a problem which occur when the optimization > flag is enabled (-O1, ..., -O3) when compiling the following > code which contain function pointers. The code compile > with no problems and works correctly when no > optimization is selected. When I turn-on the optimizer, > the program produces a non-correct result. I used gcc > 4.0.3 under Linux Ubuntu. > Thanks in advance for any help or suggestion.
In addition to using -Wall -Wextra, you can try running your program under valgrind to find questionable code paths. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus