https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120780
Siddhesh Poyarekar <siddhesh at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2025-06-26 Assignee|unassigned at gcc dot gnu.org |siddhesh at gcc dot gnu.org --- Comment #17 from Siddhesh Poyarekar <siddhesh at gcc dot gnu.org> --- Created attachment 61729 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61729&action=edit Candidate fix This is what I'm testing at the moment, basically drill down the container type and look for the inner type at the same offset. If it exists, adjust the wholesize to reflect that we're looking at the size from the context of the container object.