From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 217B8385802E; Wed, 22 Nov 2023 18:54:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 217B8385802E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700679295; bh=Fh7esTdSscTF4FJbihTdUg6jQujeDmC0TLLPbQVYuA4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VX6vj5ugiUBrU8O31FMjkREckL79HDWl3fppGM5mp6H1fTTLnTWyisg9W5zyg0zgG KfWXJw+5/m+xMgB33j73jxvUqehdrmzOtLqEw6Uik0+AafIoihKlphtSvv4LA2Vmx9 QKx6SVg6Vq/D2n1U6at0dzn/BsEadW5IpkdXxtt4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112633] [13/14 Regression] ICE with type aliases and depedent value Date: Wed, 22 Nov 2023 18:54:54 +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.1.0 X-Bugzilla-Keywords: ice-on-valid-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.3 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=3D112633 --- Comment #4 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:3f266c84a15d63e42bfad46397fea9aff92b0720 commit r14-5763-g3f266c84a15d63e42bfad46397fea9aff92b0720 Author: Patrick Palka Date: Wed Nov 22 13:54:29 2023 -0500 c++: alias template of non-template class [PR112633] The entering_scope adjustment in tsubst_aggr_type assumes if an alias is dependent, then so is the aliased type (and therefore it has template i= nfo) but that's not true for the dependent alias template specialization ty1= below which aliases the non-template class A. In this case no adjustme= nt is needed anyway, so we can just punt. PR c++/112633 gcc/cp/ChangeLog: * pt.cc (tsubst_aggr_type): Handle empty TYPE_TEMPLATE_INFO in the entering_scope adjustment. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/alias-decl-75.C: New test.=