From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B09043987825; Sat, 30 May 2020 04:21:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B09043987825 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590812467; bh=e3OlEPQv4wLgHNo2YaqOabGSPTlW6GiUuh7X+Y4H4nE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=R3uLlPj+O/OZSp4Uqv0mKDcOLZ163Y9f0GnoPhXOp4uNpbGKBkGSG7+J9JJ7fl+Zv dWjDUwkm6kNLWiHYGcElh3RiMp2VUlf7ns8YW/Rq30btaVRIC1QVH/nQS/kqwDPlB/ AZRriP8czDCWN1JzznGOyAXyR4kwj3B97uWyT1Xo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95386] [10/11 Regression] ICE: in satisfaction_value, while compiling function with a requires clause since r10-3735-gcb57504a55015891 Date: Sat, 30 May 2020 04:21:07 +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: 10.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.2 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: Sat, 30 May 2020 04:21:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95386 --- Comment #8 from CVS Commits --- The releases/gcc-10 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:6632f2920f08f5b45ffd1ada7006d4591ef9b172 commit r10-8215-g6632f2920f08f5b45ffd1ada7006d4591ef9b172 Author: Patrick Palka Date: Fri May 29 13:09:20 2020 -0400 c++: satisfaction value of type typedef to bool [PR95386] In the testcase below, the satisfaction value of fn1's constraint is INTEGER_CST '1' of type BOOLEAN_TYPE value_type, which is a typedef to the standard boolean_type_node. But satisfaction_value expects to see exactly boolean_true_node or integer_one_node, which this value is neither, causing us to trip over the assert therein. This patch relaxes satisfaction_value to accept any INTEGER_CST which satisfies integer_zerop or integer_onep. gcc/cp/ChangeLog: PR c++/95386 * constraint.cc (satisfaction_value): Relax to accept any INTEGER_CST that satisfies integer_zerop or integer_onep. gcc/testsuite/ChangeLog: PR c++/95386 * g++.dg/concepts/pr95386.C: New test.=