From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E1B14385840B; Tue, 9 Apr 2024 10:53:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E1B14385840B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712660028; bh=L/Hzki6BOqJ8gHrD0KN8VxZ2VvovEKtsMbfe6WYQKy8=; h=From:To:Subject:Date:From; b=ukVPs/lS83dXkTPDzPVtiMs8+Y1ZQUbZIK22QImkZBFVhnTeF0NDBJshjvhfL32+i J+twK7WcVaAjFlehDIFYPQ1QRcf8DLOugamrRjXTiSLAXqehqfLAepLtYIY0xsCwPL rMSX7oO7hfFF++ZihAjeKpF8RPvcmkspR5d1vh7c= From: "fchelnokov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114654] New: Alias template cannot be found Date: Tue, 09 Apr 2024 10:53:48 +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: fchelnokov 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 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=3D114654 Bug ID: 114654 Summary: Alias template cannot be found Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fchelnokov at gmail dot com Target Milestone: --- This program ``` template struct S {}; template using A =3D S; template using B =3D A<[]{}>; using C =3D B; ``` looks valid and it is accepted by Clang and MSVC, but GCC complains: :10:11: error: 'B' does not name a type 10 | using C =3D B; Online demo: https://gcc.godbolt.org/z/P4ozcd6oW Related discussion: https://stackoverflow.com/q/78292459/7325599=