From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A3D563858032; Wed, 29 Mar 2023 02:24:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A3D563858032 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680056641; bh=W3DKYJd2b3TEk5uWoZbd/X0PQwlkCdSswNk80/9Vw4U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OJnkPLDXTarhMsE+Ouoq5NFn4GbpbLjK2Hoq+X3ZEPQLV/QyQ1MtIfAFmOTFlq/fG iqEM4oZhsIK8ytjzAagwEUS7zF5lpUnkSomWhbFgvxCA85zLabCv7C9jLcbAOXB+lc y50qKJMG24l6UQ336T6+qeypy65yVpvfbPKFWuFg= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109321] [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727 Date: Wed, 29 Mar 2023 02:24:00 +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: 13.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: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D109321 --- Comment #2 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:91293ffb6af18705ab7857dc47656bdd74a9ce31 commit r13-6922-g91293ffb6af18705ab7857dc47656bdd74a9ce31 Author: Jason Merrill Date: Tue Mar 28 17:42:23 2023 -0400 c++: alias ctad refinements [PR109321] The two hunks fix missing handling demonstrated by the two testcases: first, if we omit one alias template parm but include another, we need to rewr= ite the deduced template args to reflect the new position of the included p= arm. Second, if we can't deduce any template args for a parameter pack, it is deduced to an empty pack. PR c++/109321 PR c++/109320 gcc/cp/ChangeLog: * pt.cc (alias_ctad_tweaks): Rewrite deduced args. (type_targs_deducible_from): Handle null pack deduction. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/class-deduction-alias16.C: New test. * g++.dg/cpp2a/class-deduction-alias17.C: New test.=