From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5217B3948496; Thu, 18 Jun 2020 21:48:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5217B3948496 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592516896; bh=nDJWNjE+8BBeRBBkKvrQahv/tWDkjKVzzZCQVXOixBM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=i6Qht1XAQm/sIeUrex85LaNPn930NH9ytVx6mjty5NuKX4B2UjSGzv6/qn22RZ+Pt tFs7RqO2eLly2EmZjjiCDZBrZvFSwqWHSwGiM/J270yWIbey7cGLd/PPj8/nzM7qQ2 bRPUigPoODyQMjBCdob21NtXlcWpgIEcy43FR5d8= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95568] No CTAD with list initialization within requires-clause Date: Thu, 18 Jun 2020 21:48:16 +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: 10.1.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2020 21:48:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95568 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #3 from Marek Polacek --- So far my guess is that this doesn't work because in a template finish_decltype_type will create a DECLTYPE_TYPE in the deduction guide, so we'll have template X(decltype (X::x))-> X deduction guide. type_unification_real then tries to deduce T from a P/A p= air decltype (X::x) and 0. But: The non-deduced contexts are: -- The expression of a decltype-specifier. and If a template parameter is used only in non-deduced contexts and is not explicitly specified, template argument deduction fails.=