public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47153] New: g++ with -O3 enters infinite loop
@ 2011-01-02 19:39 panagopoulosalexandrou at hotmail dot com
  2011-01-02 20:44 ` [Bug c++/47153] " redi at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: panagopoulosalexandrou at hotmail dot com @ 2011-01-02 19:39 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-01-03  8:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-02 19:39 [Bug c++/47153] New: g++ with -O3 enters infinite loop panagopoulosalexandrou at hotmail dot com
2011-01-02 20:44 ` [Bug c++/47153] " redi at gcc dot gnu.org
2011-01-02 20:45 ` zsojka at seznam dot cz
2011-01-03  1:52 ` panagopoulosalexandrou at hotmail dot com
2011-01-03  2:17 ` redi at gcc dot gnu.org
2011-01-03  2:36 ` zsojka at seznam dot cz
2011-01-03  8:41 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).