This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/82078] wrong code at -O3 in both 32-bit and 64-bit modes on x86_64-linux-gnu
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 01 Sep 2017 18:14:35 +0000
- Subject: [Bug c/82078] wrong code at -O3 in both 32-bit and 64-bit modes on x86_64-linux-gnu
- Auto-submitted: auto-generated
- References: <bug-82078-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82078
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> b = f = e[2][5] = a[5][0];
You are writing past the array bounds of e[2] and reading past the array bounds
of a there.