From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C54E43858C66; Tue, 17 Jan 2023 17:37:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C54E43858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673977022; bh=O5MRkqx6vNX20xUKdVTxCpBFRqVjNmv8y/4iH0VOguE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Lav2o+6Ljc1KWsrYjrSnj2WAARIuIInJA+UfY/9opbXL39IyZcVZtFwXWIliFttqd NoZYSNtUr+zalNef713mBCYedTwbSX+AHYpaFm0l7IKuxT/ojtJ50hhA9T+3ZvqsTG KuOENv9QZl4ppylGqTv65Wb+nFrV8t3QShsCOdUc= From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/104475] [12/13 Regression] Wstringop-overflow + atomics incorrect warning on dynamic object Date: Tue, 17 Jan 2023 17:37:00 +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.0 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 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=3D104475 --- Comment #25 from Jason Merrill --- This was clarified for C++ last year by http://wg21.link/cwg2535 I notice that C warn_for_null_address also warns about &p->mem; I don't know where that is justified in the C standard.=