https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106904
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The warning is correct for the reduced testcase as we warning that you are copying the wrong size for the field Now I have not looked at the non reduced testcase.