From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EB629389042C; Wed, 27 Jan 2021 15:33:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB629389042C From: "dimitri.gorokhovik at free dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98824] [C++-20] function template non-type-class-arg deduction fails with a reason that looks bogus Date: Wed, 27 Jan 2021 15:33:24 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dimitri.gorokhovik at free dot fr 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 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: Wed, 27 Jan 2021 15:33:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98824 --- Comment #1 from Dimitri Gorokhovik = --- It doesn't seem to contradict N4868 :-( Modifying the code slightly (adding refs, splitting deduction across two fn templates) didn't show any other differences from clang: all other modifica= tion either both pass or both fail with the equivalent messages ("'i' cannot be deduced"). This is the only one. clang version: Ubuntu clang version 12.0.0-++20201102052620+327bf5c2d91-1~exp1~20201102163303.210 Target: x86_64-pc-linux-gnu=