From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5D8CE3858C29; Thu, 18 Jan 2024 15:53:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D8CE3858C29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705593228; bh=5qO8ghWiKbJDsbDoVqlvmB9V8kWSK8fv/RAfzKGb3Pc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lx/Q88YJMtbJdYWjiXdul8ICV1vrUM9m4S+ZiGBEoshG4U1JJD8s9XarKh6uygfyt +hpqtNpNp0S61NEsyGDJ0jDGOQ9puvNizMaz8ejAawFSMv7xvP6bKEERYGedpR85RA hgsyz7sc4RgRPeWFcmwihM4dlvBp6C9JVO2IX7y0= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113242] g++ rejects-valid template argument of class type containing an lvalue reference 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: 14.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ppalka 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=3D113242 --- Comment #3 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)=