[Bug tree-optimization/102006] A false warning "Array subscript -N is outside array bounds warning"

2022-02-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/102006] A false warning "Array subscript -N is outside array bounds warning"

2022-02-15 Thread d-ef at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006 --- Comment #11 from Dmitriano --- It was UB in my code, I dereference a pointer to an object that does not exist.

[Bug tree-optimization/102006] A false warning "Array subscript -N is outside array bounds warning"

2021-08-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006 --- Comment #10 from Martin Sebor --- With the reduced test case from attachment 51366 I get the same warning: $ gcc -O2 -S -Wall -std=c++20 -xc++ ListTest.cpp.i In constructor ‘double_iterator::double_iterator(single_iterator) [with T =

[Bug tree-optimization/102006] A false warning "Array subscript -N is outside array bounds warning"

2021-08-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006 --- Comment #9 from Martin Sebor --- Created attachment 51366 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51366=edit Reduced test case. Attached is a reduced test case.

[Bug tree-optimization/102006] A false warning "Array subscript -N is outside array bounds warning"

2021-08-23 Thread d-ef at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006 --- Comment #8 from Dmitriano --- (In reply to Dmitriano from comment #7) > (In reply to Richard Biener from comment #6) > > It sounds like the usual upcasting of a link-only node which is strictly > > non-conforming and can also result in TBAA

[Bug tree-optimization/102006] A false warning "Array subscript -N is outside array bounds warning"

2021-08-23 Thread d-ef at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006 --- Comment #7 from Dmitriano --- (In reply to Richard Biener from comment #6) > It sounds like the usual upcasting of a link-only node which is strictly > non-conforming and can also result in TBAA issues but it's wide-spread. > Note I didn't

[Bug tree-optimization/102006] A false warning "Array subscript -N is outside array bounds warning"

2021-08-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006 --- Comment #6 from Richard Biener --- It sounds like the usual upcasting of a link-only node which is strictly non-conforming and can also result in TBAA issues but it's wide-spread. Note I didn't look into the source at all.

[Bug tree-optimization/102006] A false warning "Array subscript -N is outside array bounds warning"

2021-08-21 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006 Martin Sebor changed: What|Removed |Added Blocks||56456 CC|