From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6884D3858D3C; Sun, 22 Jan 2023 23:44:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6884D3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674431094; bh=5Hqrx7WNE5/YOJIRJ34FxqPqsCwede6BX5F/lCTqW6g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BdHL9fI3dXBzZCupJPyLdiBm1DVgZY6wP9LLJeWnKMOxBuHV4zOU5n7/57lwsmdqb vH2fTjNZd6DOL+6dDmSOvzTIVsUyXWJODOYSAbgvI9YCdd+LELLhxt55zbbyOVYWH3 A/ixYcBAMEOyUwiGEsrQj90l1k2BCm05L2B9M0Vo= From: "westfw at westfw dot info" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105523] Wrong warning array subscript [0] is outside array bounds Date: Sun, 22 Jan 2023 23:44:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: westfw at westfw dot info X-Bugzilla-Status: NEW 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: cc 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=3D105523 William Westfield changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |westfw at westfw dot info --- Comment #15 from William Westfield --- It seems especially weird that the following AVR program generates the warn= ing for only the "&=3D" statement. #include "avr/io.h" int main(void){ DDRD &=3D ~_BV(PD3); DDRD |=3D _BV(PD3); return 0; }=