[Bug tree-optimization/106904] [12/13 Regression] Incorrect -Wstringop-overflow with partial memcpy() into a nested structure

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 13 15:30:55 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106904

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.3
            Summary|Incorrect                   |[12/13 Regression]
                   |-Wstringop-overflow with    |Incorrect
                   |partial memcpy() into a     |-Wstringop-overflow with
                   |nested structure            |partial memcpy() into a
                   |                            |nested structure

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Zebediah Figura from comment #3)
> From the warning, it seems like it thinks I wrote
> 
> memcpy(&ps->wp.hwnd, &wp, sizeof(wp));
> 
> but that's not what I wrote.

Oh I read the code wrong sorry about that.


More information about the Gcc-bugs mailing list