From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 472B9384DD00; Thu, 5 Sep 2024 02:13:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 472B9384DD00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1725502432; bh=u1Cs37qr6TT6OyiQIluMSkM/KkLno8S86VV7C7HdmJU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YTZJO3OJ1T5AiElWupbhxUqXl1uiIasL/Wds7vltiCSm9BcEnvnITjVJDkoh7XrH1 2J9xzK3AwoR8j56cKNJakTF7mz/Ni0MtRRIbZgpN0gUtDtpeDuWmXHyfY4/Q9YN20g /4NtmygEpnQLctZ7x9Ny9F8EROKmhZPiaq7ccz8k= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/116607] ICE: tree check: expected tree_list, have integer_cst in has_active_contract_condition, at cp/contracts.cc:1505 with no_sanitize attribute and -fcontracts option Date: Thu, 05 Sep 2024 02:13:51 +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: 15.0 X-Bugzilla-Keywords: c++-contracts, 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: cf_reconfirmed_on everconfirmed bug_status keywords 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=3D116607 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-09-05 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Keywords| |c++-contracts, | |ice-on-valid-code --- Comment #1 from Andrew Pinski --- Confirmed. reduced valid testcase: ``` struct a { __attribute__((no_sanitize(""))) int f(int) [[pre:true]]; }; int a::f(int) {} ``` Looks like there is a missing check for cxx_contract_attribute_p in the loo= p. has_active_contract_condition either should use cxx_contract_attribute_p or more likely just use CONTRACT_CHAIN .=