From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A47B438AA24E; Fri, 4 Nov 2022 14:07:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A47B438AA24E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667570850; bh=bPMcys5WEdeU+Vwslgz2ICa1/Bq9D07nNvaKBoIwOLo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=p1oo5iEmmqEXowyWnCKHj34nNDA5+QEnM6UBXAX7UT4LEHUcjCWr/3AMTFDOS9IwO IS0x9yqls/KkaJygEamm2M4S5IXFO2XvCHoR75kffPtuY+ol7DV/C6Jf5uYKAwaj1U e80+OJXk169H2CoyPPIA55joIsXJ0f8XXI8Z+axw= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107525] propagate_const should not be using SFINAE on its conversion operators Date: Fri, 04 Nov 2022 14:07:30 +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: 12.2.1 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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=3D107525 --- Comment #2 from Jonathan Wakely --- Also, the constraint is wrong for the non-const conversion. It checks for convertibility to const element_type* but should be element_type*.=