[Bug c++/51962] New: Compiling with -O3 and using the same input produces a different result

2012-01-23 Thread mario.achkar at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51962 Bug #: 51962 Summary: Compiling with -O3 and using the same input produces a different result Classification: Unclassified Product: gcc Version: 4.6.2 Status:

[Bug c++/51962] Compiling with -O3 and using the same input produces a different result

2012-01-23 Thread mario.achkar at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51962 Mario Achkar mario.achkar at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/51962] Compiling with -O3 and using the same input produces a different result

2012-01-23 Thread mario.achkar at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51962 --- Comment #3 from Mario Achkar mario.achkar at gmail dot com 2012-01-23 11:27:48 UTC --- (In reply to comment #1) You do not initialise found1. Set that to false and your problem probably goes away. Thanks for the fast reply.