From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 55FB03857023; Mon, 22 Mar 2021 11:33:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 55FB03857023 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99705] [10/11 Regression] ICE in expand_expr_real_1 since r10-3661 Date: Mon, 22 Mar 2021 11:33:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.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 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: Mon, 22 Mar 2021 11:33:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99705 --- Comment #1 from Jakub Jelinek --- The *.original dump diff before/after is @@ -32,11 +32,11 @@ } :; { - struct C * D.2390; + struct C * D.2390 =3D D.2378 + ((SAVE_EXPR <(sizetype) ((struct X *) this)->n> - (sizetype) D.2380) + 18446744073709551615); (if (D.2378 !=3D 0B) { - (void) (D.2390 =3D D.2378 + ((SAVE_EXPR <(sizetype) ((struct X *) this)->n> - (sizetype) D.2380) + 18446744073709551615));, while (1) + struct C * D.2390 =3D D.2378 + ((SAVE_EXPR <(sizetype) ((s= truct X *) this)->n> - (sizetype) D.2380) + 18446744073709551615);, while (1) { if (D.2390 =3D=3D D.2378) break;, (void) (D.2390 =3D D.2390 + 18446744073709551615);;, C::~C (D.2390);; }; and I think the problem is that this in the latter comes from the wrong cto= r - _ZN1XC4Ev rather than expected _ZN1XC2Ev.=