[Bug tree-optimization/126975] __bos/__bdos(&p->inner, 1) collapses into type 0 when subobject inner ends in a FAM

gustavo at embeddedor dot com via Gcc-bugs <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126975

--- Comment #7 from Gustavo A. R. Silva <gustavo at embeddedor dot com> ---
(In reply to Richard Biener from comment #5)
> The inner flex array may not extend beyond the outer object size (it might
> cover tail padding that's eventually there).  I'd expect &p->inner to be of
> size 8.

Yes. Tail padding is fine.

I've already submitted a patch for this, if you'd like to take a look:

https://inbox.sourceware.org/gcc-patches/aojDH2Db6XIkVqcf@kspp/T/#u
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.