This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/56463] infinite loop when having integer overflow in a simple accumulator
- From: "nakacristo at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Feb 2013 17:39:31 +0000
- Subject: [Bug c/56463] infinite loop when having integer overflow in a simple accumulator
- Auto-submitted: auto-generated
- References: <bug-56463-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56463
--- Comment #2 from CristÃbal Camarero <nakacristo at hotmail dot com> 2013-02-26 17:39:31 UTC ---
I think that at least -Wall -Wextra -Wstrict-overflow=5 should give a giving
notice of the extremely odd behaviour.
However, I am not following your reasoning to invalidate the bug. Are you
implying that any program with an integer overflow can be legally substituted
by a "Hello World"? It would have almost the same sense that the displayed
behaviour.