This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47153] g++ with -O3 enters infinite loop
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 2 Jan 2011 20:45:51 +0000
- Subject: [Bug c++/47153] g++ with -O3 enters infinite loop
- Auto-submitted: auto-generated
- References: <bug-47153-4@http.gcc.gnu.org/bugzilla/>
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 "!" ?