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: unassig...@gcc.gnu.org ReportedBy: m.hekkel...@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.