From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 928B53858C2F; Thu, 18 Jan 2024 15:53:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 928B53858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705593227; bh=PnPCPVBiXK+uGAFdwZ+ixoXROd1BNiJzrv+AX3+XzVQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZP68g02L4VfWcw+oS1YPLoD3HE9+GoX8e/TI027bSkow8Pg+r2E8xdIwN5LSLWVc8 flQF0N+fXbyuu06gdCqhQ/fF+xTeQ5OSHZgB44VDYblIKCSLUJRv6Wv2sgyhXSaARM UYQgC9fte9w6xs9UkHGcpHAmWId56IIOLut1d4fA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99493] Address of template parameter object is not a valid template argument Date: Thu, 18 Jan 2024 15:53:46 +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: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: --- 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=3D99493 --- Comment #6 from GCC Commits --- The releases/gcc-13 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:4ffb23975b32bfd285915c3d6659b837868b5aa9 commit r13-8235-g4ffb23975b32bfd285915c3d6659b837868b5aa9 Author: Patrick Palka Date: Wed Jan 17 13:01:01 2024 -0500 c++: address of class NTTP object as targ [PR113242] invalid_tparm_referent_p was rejecting using the address of a class NTTP object as a template argument, but this should be fine. PR c++/113242 PR c++/99493 gcc/cp/ChangeLog: * pt.cc (invalid_tparm_referent_p) : Suppress DECL_ARTIFICIAL rejection test for class NTTP objects. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/nontype-class61.C: New test. * g++.dg/cpp2a/nontype-class62.C: New test. Reviewed-by: Jason Merrill (cherry picked from commit 68cea2d32a9fd525154b6a48042e5835d4c5e371)=