From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C43CE3858019; Mon, 18 Dec 2023 23:05:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C43CE3858019 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702940736; bh=thgMxzBdePH+DAXLJ4tQ5p1S65BLzdO1WdERl1RddnE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wKhDEajFEPlabYJOKW6duuOOIaAMQn5nMFpk9Ij6AWG0AGGXMwbfWC/o3TSkGCzxN B8G7OYm9lRXut0L/croxf6XZoGWxSXK0N5MaHwMxyDYOukG4bYnMDLVMz63ro1UVS2 yTyhDEFA+2chYTUKELF7zWbPaMg99sb9YHRtzR50= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/113074] requires requires should be SFINAE Date: Mon, 18 Dec 2023 23:05:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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=3D113074 --- Comment #3 from Andrew Pinski --- https://eel.is/c++draft/memory#pointer.conversion As far as I can tell, std::to_address is not required to be SFINAE safe ... The standard just says: ``` Returns: pointer_traits=E2=80=8B::=E2=80=8Bto_address(p) if that expre= ssion is well-formed (see [pointer.traits.optmem]), otherwise to_address(p.operator->()). ```=