[Bug c++/47153] New: g++ with -O3 enters infinite loop
panagopoulosalexandrou at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Jan 2 19:39:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47153
Summary: g++ with -O3 enters infinite loop
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: panagopoulosalexandrou@hotmail.com
Created attachment 22882
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22882
The program for which the bug applies.
$ x86_64-redhat-linux-g++ sudoku_solver_single.cpp -O3 -o sudoku_solver_single
$ ./sudoku_solver_single
.923.........8.1...........1.7.4...........658.........6.5.2...4.....7.....9.....
The program seems to enter an infinite loop inside solve, even though found_one
is set to true. The expected behaviour is observed when -O2 is used instead.
More information about the Gcc-bugs
mailing list