From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC85B38582A8; Mon, 4 Dec 2023 09:21:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC85B38582A8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701681687; bh=HsCXmsQmpf+md3LyOPJlliF5Og7raCh12MCNgBz4UqU=; h=From:To:Subject:Date:From; b=gg3Hw0iNWrumg2rSIHS9O5tSr/6TDkVvE5G+tSivOprOppSmkS4pjXlbiGQdZsXso BabkNY2Y9CAZwJSHSk0htu28WOpDXshfwpvLuecAELVZSLU0nqojC5GUIfD7qSYHUl 7fpFxfvQyRecPZiu+HnfYsSkY7ZtM7LfD1zpddIw= From: "jehelset at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112842] New: Constrained parameter pack with trailing param gives no matching function. Date: Mon, 04 Dec 2023 09:21:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jehelset at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D112842 Bug ID: 112842 Summary: Constrained parameter pack with trailing param gives no matching function. Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jehelset at gmail dot com Target Milestone: --- Created attachment 56785 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56785&action=3Dedit Minimal reproducer, compile with --std=3Dc++20 Program below doesn't compile: template concept U =3D true; template struct V{ static constexpr void f(U auto ...,int){ } }; int main(){ V::f(0,1); //no matching function for call to =E2=80=98V::f(int= , int)=E2=80=99 //template argument deduction/substitution failed: //candidate expects 1 argument, 2 provided } If there's no trailing parameter it works ok. clang-trunk seemed to handle = it fine. gcc-trunk also failed this.=