This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50115] Integer test optimised away at -O2 by the VRP
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Aug 2011 13:13:22 +0000
- Subject: [Bug c++/50115] Integer test optimised away at -O2 by the VRP
- Auto-submitted: auto-generated
- References: <bug-50115-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50115
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-08-18 13:13:22 UTC ---
actually, technically unsigned integers cannot "overflow", they wrap, with
well-defined behaviour (as it says, "unsigned arithmetic does not overflow")
but in layman's terms, yes, you are correct