From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C33803858C30; Sun, 9 Jul 2023 18:37:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C33803858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688927825; bh=azFZSxNNk2znb/Db4g1WKaLyTxV2q2pU6Pbt5A2arKM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VLYRwDCNSHgxapg53Ifiat97CG2TuAJAX4fO5Dmxb0C2TiPkOMwKcChUTzUo3iRv4 ffbjWKMketPD/+uAqxFQq/324t9k915LHHzdM1O4bAfkvv5OSWxhrgKOAdjO7dBCMm SkcoCaG+2V/YGv5ceE9+Y0XlohN/8Xy03anbxqaE= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110580] [14 Regression] gcc fails to typecheck nix-2.16.1 source: error: invalid initialization of reference of type Date: Sun, 09 Jul 2023 18:37:05 +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: needs-bisection, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 14.0 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=3D110580 --- Comment #4 from Andrew Pinski --- Slightly more reduced: ``` #include using std::is_same_v; struct s0 {}; struct s1 {}; template =20 struct s3 { template static constexpr bool __usable_key =3D is_same_v<_Vp, _Key>; static_assert(!__usable_key); }; s3 t; ``` If I remove _Vp or remove it from being type dependent, it works.=