From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ADF3E3858280; Wed, 19 Jul 2023 20:02:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ADF3E3858280 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689796954; bh=WrbaZB24+ku9gMQLy0V+jhxEwaeF7gTj9f1tcgayV3w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XIVqA7t80c7IurRTefDJkX+I37BR1dlbbVBsitFxUN/T85ge8ERcQPn3plKBHGOnl Hs6vx0QuQXxmkpGtYaP/fJy4ZFDql7YwLvrwq0tj0T2hKKokcCbLvIKKxPExvFtxrB lZOq++jEGDtgAHW2jggod4k3t72odkZ6W7I6CLuM= 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: Wed, 19 Jul 2023 20:02:34 +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: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110535 --- Comment #4 from CVS Commits --- The releases/gcc-13 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:92f6240baf80f998ca6c1408c3ee09d5d2ae68d7 commit r13-7592-g92f6240baf80f998ca6c1408c3ee09d5d2ae68d7 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. (cherry picked from commit 1e0f37df1b12cd91a6dbb523f5c722f9a961edaa)=