This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47153] g++ with -O3 enters infinite loop


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 "!" ?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]