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.
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006
--- Comment #4 from Dmitriano ---
(In reply to Andrew Pinski from comment #1)
> Can you attach the prepcoessed source?
attached ListTest.cpp.i file that I generated with the command
make Tests/ListTest.cpp.i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006
--- Comment #3 from Dmitriano ---
(In reply to Dmitriano from comment #2)
> Created attachment 51340 [details]
> preprocessed source file
attached ListTest.cpp.i file that I generated with the command
make Tests/ListTest.cpp.i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006
--- Comment #2 from Dmitriano ---
Created attachment 51340
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51340&action=edit
preprocessed source file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006
Bug ID: 102006
Summary: A false warning "Array subscript -N is outside array
bounds warning"
Product: gcc
Version: 11.1.0
Status: UNCONFIRMED
Severity: normal