From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8F6E23857734; Tue, 9 May 2023 15:13:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F6E23857734 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683645222; bh=Ej9flUE/RacQb57d6XwMJ4NEVwR+UuYxyddNWErOo9M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y/SUuYbzKVbhVDdhegKRjkntCxtxSQmcXJgOn0SA8NZC8V93V3AAqLP/rNHKAf5C6 /iYiRl5j8iZ0sNqs5E1Dy1T8w/UDJp0bs/xmf68dRKkfI4C2MCPmrTQK0jgnDsIiaU /HfnMlkuwKATjCkZ6sXcoqce3LHbPe83qCRvDDDI= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109695] [14 Regression] crash in gimple_ranger::range_of_expr since r14-377-gc92b8be9b52b7e Date: Tue, 09 May 2023 15:13:42 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D109695 --- Comment #31 from Jakub Jelinek --- Well, you don't need to use {,vec_}{safe,quick}_push etc. all the time, just have auto_vec in there and use .address () on it to give you pointer to the elements and then .length () / .allocated () and .reserve () to ask for more elements.=