From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E5EE7385AC35; Sat, 19 Feb 2022 05:51:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5EE7385AC35 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/104603] [10/11/12 Regression] wrong detection of -Warray-bounds for interesting tail resusive case Date: Sat, 19 Feb 2022 05:51:44 +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: 10.3.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 10.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc component target_milestone 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2022 05:51:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104603 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|wrong detection of g++ |[10/11/12 Regression] wrong |-Warray-bounds about |detection of |downcast |-Warray-bounds for | |interesting tail resusive | |case Component|c++ |tree-optimization Target Milestone|--- |10.4 --- Comment #2 from Andrew Pinski --- Someone else needs to look into this further than me because the warning on= ly happens because there are cases where the access can happen but the accesses are not really used. Also if this is from some larger code, it might be useful to have the non-reduced testcase since the reduced testcase might being showing somethi= ng different.=