[Bug c++/56698] "array subscript is above array bounds" triggered on code that doesn't have that problem

2017-08-01 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56698 Eric Gallager changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug c++/56698] "array subscript is above array bounds" triggered on code that doesn't have that problem

2017-08-01 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56698 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org ---

[Bug c++/56698] array subscript is above array bounds triggered on code that doesn't have that problem

2013-04-09 Thread mh+gcc at glandium dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56698 --- Comment #5 from Mike Hommey mh+gcc at glandium dot org 2013-04-09 14:54:51 UTC --- As noted in https://bugzilla.mozilla.org/show_bug.cgi?id=854105#c4, fileIndex is uint32_t, so 0 - 1 is UINT32_MAX, which makes the error valid. Now the

[Bug c++/56698] array subscript is above array bounds triggered on code that doesn't have that problem

2013-04-03 Thread mh+gcc at glandium dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56698 --- Comment #3 from Mike Hommey mh+gcc at glandium dot org 2013-04-03 15:46:04 UTC --- Created attachment 29798 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29798 Preprocessed file This is the preprocessed file. In case that

[Bug c++/56698] array subscript is above array bounds triggered on code that doesn't have that problem

2013-04-03 Thread mh+gcc at glandium dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56698 --- Comment #4 from Mike Hommey mh+gcc at glandium dot org 2013-04-03 18:35:14 UTC --- Created attachment 29800 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29800 nsDiskCacheMap.gcda I can reproduce with the preprocessed file and

[Bug c++/56698] array subscript is above array bounds triggered on code that doesn't have that problem

2013-04-02 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56698 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added CC||jason at

[Bug c++/56698] array subscript is above array bounds triggered on code that doesn't have that problem

2013-04-02 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56698 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |WAITING

[Bug c++/56698] array subscript is above array bounds triggered on code that doesn't have that problem

2013-03-23 Thread mh+gcc at glandium dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56698 --- Comment #1 from Mike Hommey mh+gcc at glandium dot org 2013-03-23 18:11:16 UTC --- Interestingly, if I modify CalculateFileIndex to return 3 instead of 0, the error doesn't happen. So it might be a case of confusing gcc warning/error