From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3BFEC3857355; Fri, 6 Oct 2023 16:35:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3BFEC3857355 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696610150; bh=HH6ITpGEL0lsvW4KnoX0/UDxHYA87ZouV8lb0E+8mbs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aadNQETxJ++DMxjPal+UCeLCkAgAB2KiG2vu78divAaU3ZSjl3PI04Rir2/ndqISX fCRPOLdTQLX4jOXxGyTPX7pvnh3q36lu5w/P8AaOY2T+iIjGSeZKHGXm52sPLRh6EV Su814zglhTWnLH/JMv3J2rIva1pAVHK3WpfoXHyY= From: "hewillk at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111717] syntax error When CTAD encounters complex alias template Date: Fri, 06 Oct 2023 16:35:49 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hewillk 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: 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=3D111717 --- Comment #1 from =E5=BA=B7=E6=A1=93=E7=91=8B = --- #include namespace std { constexpr size_t dynamic_extent =3D -1; template class extents { }; template using dextents =3D decltype([](index_sequence) { return extents{}; }(make_index_sequence{})); // this works well static_assert(std::is_same_v< dextents, extents> ); template class mdspan { template explicit mdspan(Ptr ptr, Integrals... exts); }; template explicit mdspan(ElementType*, Integrals...) ->mdspan>; } https://godbolt.org/z/E45dcb4G8=