From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EDF3B3858C83; Sun, 11 Sep 2022 22:54:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EDF3B3858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662936859; bh=C4eE4jrjMvbBamIcKdMw4RdaQ8b4850eCd8k8G8tGXY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RC+QBY1MXpSNDuRfLFzMoCaZIKX5kSjAswS4bxl42T1XheInBx/JLXaWM52enHJ4A RU2NhjbruzBwrLV3a/UDl8+Ypsydf85GXgwb6h/rJkzdlqqVkb34XFyfP+/C3hpgVP uVU7HbsOeisHYI4sysYGLSLtwRQ+WPOi1Ll3MmFU= From: "zfigura at codeweavers dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106904] Incorrect -Wstringop-overflow with partial memcpy() into a nested structure Date: Sun, 11 Sep 2022 22:54:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: zfigura at codeweavers dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106904 --- Comment #3 from Zebediah Figura --- >From the warning, it seems like it thinks I wrote memcpy(&ps->wp.hwnd, &wp, sizeof(wp)); but that's not what I wrote.=