This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/65493] bug with 64/32 division sign related to various factors (-O3)
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Mar 2015 13:13:16 +0000
- Subject: [Bug c/65493] bug with 64/32 division sign related to various factors (-O3)
- Auto-submitted: auto-generated
- References: <bug-65493-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65493
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |trippels at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
In such cases you should compile your testcase with -fsanitize=undefined:
foo.c:23:5: runtime error: signed integer overflow: 2091699912 + 136534552
cannot be represented in type 'int'