From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5F932385414D; Wed, 24 Aug 2022 14:17:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F932385414D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661350642; bh=xS4dm/Q3lhMqrmK2lNfCOrfOUIPHlaD9umoOVz2SKQ0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=M71cULRHoQMyw52g5axhjf6wLBJG0J2UINRgh6hqwP2E69DM4tbDVfHWJP3XeBuVd q7sSkr/yPgT24eWBJjjzztHQE8dVJZ0R6xj/AfgKxqSStHSTuBwX/iAco/G+xCU8zc c4eb0SOEKbIcY6VQQNSO2TXcf/Sxp7+F1BPNo2Qs= From: "jakob at schmutz dot co.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106734] [requires] std::same_as in compound requirements doesn't produce expected result Date: Wed, 24 Aug 2022 14:17:22 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakob at schmutz dot co.uk 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106734 --- Comment #4 from jakob at schmutz dot co.uk --- (In reply to Jonathan Wakely from comment #3) > (In reply to jakob from comment #0) > > Bar bar; > > constexpr bool same =3D requires > > { > > { bar } -> std::same_as; >=20 > This is false. The type of decltype((bar)) is Bar&. >=20 > So I think GCC is correct. Right but then why is `std::same_as` true? Shouldn't th= at also be false then?=