From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE44B3857019; Tue, 18 Jul 2023 13:23:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE44B3857019 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689686628; bh=Q/o2Oe9hvPdKiQVl7uLH7AG4hVU/pB7mqydvygt6eGA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=G2lal4HRwO1abc3g0FiG9k1uV0JupWQIrJg3Z1Kee0BnMCv2dFb5lf6pWPjVTXxAC EJJfs7USj5HDWxJO/2c3M3qZj9e8gpFhW88PKHSeIAInWeBsT06lKoJFT3HGu3cA1T +RQoSxo1tdiktXjRrosKHP6PaPRl2plSNML4fvVE= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110535] Internal error when performing a surrogate call with unsatisfied constraints Date: Tue, 18 Jul 2023 13:23:48 +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: 14.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 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=3D110535 --- Comment #2 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:1e0f37df1b12cd91a6dbb523f5c722f9a961edaa commit r14-2618-g1e0f37df1b12cd91a6dbb523f5c722f9a961edaa Author: Patrick Palka Date: Tue Jul 18 09:21:40 2023 -0400 c++: constrained surrogate call functions [PR110535] We weren't checking constraints on pointer/reference-to-function conver= sion functions during overload resolution, which caused us to ICE on the fir= st testcase and reject the second testcase. PR c++/110535 gcc/cp/ChangeLog: * call.cc (add_conv_candidate): Check constraints. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/concepts-surrogate1.C: New test. * g++.dg/cpp2a/concepts-surrogate2.C: New test.=