From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 962BD3858C54; Fri, 29 Dec 2023 20:52:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 962BD3858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703883125; bh=iJbjpQVPLIsTV69qvT5iHniD9nJjs6N72EwtWF4c8K8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XnfrcGujEvUg6K1npEZ+U1dJcWAeJlu0Gr40vluTXXpI0WNVIQF6ASqSda4VM4M3e J0utRNdEI0eFCUUmtYV3Mjof2royFf4KJizon8IhnRFCVp2yp6xtwzQwHMdRB0UmVB CDgDr1w6UPJ1tzCc7lPODkMGIxDOEDSzWrna8J/4= From: "eddiejnolan at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/83181] [C++17] Invalid deduction guide accepted Date: Fri, 29 Dec 2023 20:52:04 +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: 7.2.1 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: eddiejnolan at gmail dot com 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: --- 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83181 Eddie Nolan changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eddiejnolan at gmail dot c= om --- Comment #3 from Eddie Nolan --- Here's another example: template struct foo {}; template foo(T&&) -> foo; Clang says: :5:1: error: deduction guide template contains a template parameter that cannot be deduced 5 | foo(T&&) -> foo; | ^ :4:31: note: non-deducible template parameter 'U' 4 | template | ^ But GCC accepts it.=