[Bug c++/47153] g++ with -O3 enters infinite loop
zsojka at seznam dot cz
gcc-bugzilla@gcc.gnu.org
Sun Jan 2 20:45:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47153
Zdenek Sojka <zsojka at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zsojka at seznam dot cz
--- Comment #2 from Zdenek Sojka <zsojka at seznam dot cz> 2011-01-02 20:45:50 UTC ---
Please upload minimal testcase that reproduces the problem.
I am not able to reproduce the problem by the steps you provided:
$ x86_64-pc-linux-gnu-g++-4.5.2 sudoku_solver_single.cpp -O3 -o
sudoku_solver_single
$ ./sudoku_solver_single
Usage: ./sudoku_solver_single <sudoku puzzle> or -f <sudoku file>
Show unknown boxes with . or 0
However, if found_one is true, the loop is expected to never finish:
} while(found_one);
maybe missing "!" ?
More information about the Gcc-bugs
mailing list