This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51731] New: code generation bug in negative indices in arrays on 64-bit targets
- From: "m.hekkelman at cmbi dot ru.nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 02 Jan 2012 12:26:00 +0000
- Subject: [Bug c++/51731] New: code generation bug in negative indices in arrays on 64-bit targets
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51731
Bug #: 51731
Summary: code generation bug in negative indices in arrays on
64-bit targets
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: m.hekkelman@cmbi.ru.nl
Created attachment 26217
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26217
source file containing a fully self contained bug description
When compiling the attached code with -O3 the generated code is incorrect as
can be seen by the output of the program. The problem was introduced in gcc
4.5, earlier versions did not have this problem.