[Bug c++/51731] code generation bug in negative indices in arrays on 64-bit targets

2012-01-02 Thread m.hekkelman at cmbi dot ru.nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51731 --- Comment #6 from M.L. Hekkelman 2012-01-03 07:44:55 UTC --- (In reply to comment #5) > (In reply to comment #4) > > Following your logic, if I rewrite the code from: > > > > return data.e[-1]; > > > > to > > > > int* ep = data.e; > >

[Bug c++/51731] code generation bug in negative indices in arrays on 64-bit targets

2012-01-02 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51731 --- Comment #5 from Jakub Jelinek 2012-01-02 19:32:08 UTC --- (In reply to comment #4) > Following your logic, if I rewrite the code from: > > return data.e[-1]; > > to > > int* ep = data.e; > return ep[-1]; > > It would be valid, r

[Bug c++/51731] code generation bug in negative indices in arrays on 64-bit targets

2012-01-02 Thread m.hekkelman at cmbi dot ru.nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51731 --- Comment #4 from M.L. Hekkelman 2012-01-02 19:08:10 UTC --- Beste jakub, maandag 2 januari 2012, 18:10:17, schreef je: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51731 > Jakub Jelinek changed: >What|Removed

[Bug c++/51731] code generation bug in negative indices in arrays on 64-bit targets

2012-01-02 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51731 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/51731] code generation bug in negative indices in arrays on 64-bit targets

2012-01-02 Thread m.hekkelman at cmbi dot ru.nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51731 --- Comment #2 from M.L. Hekkelman 2012-01-02 17:03:46 UTC --- Beste paolo.carlini, maandag 2 januari 2012, 17:23:42, schreef je: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51731 > --- Comment #1 from Paolo Carlini > 2012-01-02 16:23:42 U

[Bug c++/51731] code generation bug in negative indices in arrays on 64-bit targets

2012-01-02 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51731 --- Comment #1 from Paolo Carlini 2012-01-02 16:23:42 UTC --- Maybe I'm just tired (sorry in case) but I really don't see how this can possibly work: *negative* index?!? Can you explain?