This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81785] Segmentation fault for signed overflow in index expression when -fwrapv is enabled
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 Aug 2017 14:22:33 +0000
- Subject: [Bug c/81785] Segmentation fault for signed overflow in index expression when -fwrapv is enabled
- Auto-submitted: auto-generated
- References: <bug-81785-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81785
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-08-11
CC| |egallager at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
runs fine for me with GCC 8 on i386-apple-darwin9.8.0 (32-bit), but segfaults
on me when I add -m64 to force 64-bit. -Wall -Wextra -Wstrict-overflow=5
-Warray-bounds=2 all print nothing. So confirmed that the code crashes,
although someone else will have to say if GCC is truly the one at fault here.