From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2E92B3851C00; Thu, 9 Mar 2023 15:28:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E92B3851C00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678375684; bh=FEx+hnjBcx9h+BsamUGfFieDP9LFhnEICzK5foOjOIs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kj8p4q1XrP7IxR48xCvWZ703iifqrDlIlP3J8Y8PeMABImsdGVvCLtcwLRIqaTYrV JuTzbzrEeMj+W6JYVyY/RBbqmd4e1TOpp36NzKeikvdc/LfuXG5gmLii/FcObF7lgB EpXRK6dwuPwQwhaaP1qOl2NAY/UpsI5T0BdP43tE= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102529] ctad for aliases fails in the presence of constraints Date: Thu, 09 Mar 2023 15:28:03 +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: 12.0 X-Bugzilla-Keywords: rejects-valid 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: jason 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=3D102529 --- Comment #2 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:afe1f0c251d0429069c2414d4f3f14042efc174f commit r13-6556-gafe1f0c251d0429069c2414d4f3f14042efc174f Author: Jason Merrill Date: Thu Feb 9 12:58:35 2023 -0800 c++: CTAD for less-specialized alias template [PR102529] The standard was unclear what happens with the transformation of a deduction guide if the initial template argument deduction fails for a reason oth= er than not deducing all the arguments; my implementation assumed that the right thing was to give up on the deduction guide. But in consideratio= n of CWG2664 this week I realized that we get a better result by just contin= uing with an empty set of deductions, so the alias deduction guide is the sa= me as the original deduction guide plus the deducible constraint. DR 2664 PR c++/102529 gcc/cp/ChangeLog: * pt.cc (alias_ctad_tweaks): Continue after deduction failure. gcc/testsuite/ChangeLog: * g++.dg/DRs/dr2664.C: New test. * g++.dg/cpp2a/class-deduction-alias15.C: New test.=