This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/50922] infinite loop when optimized
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 31 Oct 2011 20:38:17 +0000
- Subject: [Bug c/50922] infinite loop when optimized
- Auto-submitted: auto-generated
- References: <bug-50922-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50922
--- Comment #8 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2011-10-31 20:38:17 UTC ---
(In reply to comment #7)
> I tried this new variant with "gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1"
> With this version it works correctly. Also with avr-gcc this variant
> works correctly.
> So the problem seems really to be solved.
I sincerely hope you are not doing something important with your code. Relying
on undefined behaviour sometimes "working" is like playing russian roulette.
That the last five times nothing bad happened does not tell you anything about
what will happen next time you try.