From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C2FE4385840F; Fri, 24 Feb 2023 07:00:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C2FE4385840F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677222001; bh=sW8xLaxE9U2O+SIGiMJ1i4VqeNLcmTR3lY97CTlW4iY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qA2Oxs+xipV1SRxvMB5SRPhraIs6q+qwsXOChEhXAQX6bYpEqVJS4TRVoQjVhF03b FLayFiavH+rWgq7gSKln+LFps5nIGmsTpzvbh+Zp+hKBXm0EbX57rkD+pVXO4BLoGP ezI0CDM4n2LaeOueaTvZD3L9gp4TDtCZm1463yoY= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/108917] ICE when specifying optimization level and debuging for C++ contracts code Date: Fri, 24 Feb 2023 07:00:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: everconfirmed keywords bug_status cf_reconfirmed_on 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=3D108917 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2023-02-24 --- Comment #1 from Andrew Pinski --- Reduced testcase: ``` [[gnu::noipa]] int f (int i) { return i + 100; } int g (int j) [[pre: f (j) < j ]] { return j; } ``` It is the inlining of the contract into g which is causing the ICE.=