From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B40A93858D35; Sat, 25 Mar 2023 14:30:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B40A93858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679754611; bh=yYH4D0I0cVrb3SrY5INGPrD3M2dlX7fJVngjlBZvklE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=f3kfkZjOZlxmjFLH2s6NCx3HmuO8OgcYVDtL2IrqMehgn0/JgCOixpb8XbDn/jfq/ l7yzGtjW3E9S+FnthA4mW84iHzWA3TWnaHEXTcsXQJDtDewVpdfAoT8WfzC9sRkA1l 5ZYmCcvYZEBdZfQG78qb2AGT7tawTe6XAh8eSNnU= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvMTA5Mjc3XSBbMTMgUmVncmVzc2lvbl0gdHlwZV90?= =?UTF-8?B?cmFpdHM6MTQxNzozMDogZXJyb3I6IGludmFsaWQgdXNlIG9mIGluY29tcGxl?= =?UTF-8?B?dGUgdHlwZSDigJhjbGFzcyB2ODo6aW50ZXJuYWw6Oldhc21BcnJheeKAmQ==?= Date: Sat, 25 Mar 2023 14:30:11 +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: 13.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka 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: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords 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=3D109277 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-bisection, | |needs-reduction | --- Comment #10 from Patrick Palka --- Thus started with the move to use the built-in __is_convertible in std::is_convertible, r13-2883-gaf85ad891703db (In reply to Patrick Palka from comment #9) > One fix is to define a move constructor for TNode, which causes GCC's > perfect candidate optimization (r11-7287-g187d0d5871b1fa) to kick in and > avoid considering the template candidate #1. Another fix is to use > std::conjunction/disjunction in is_subtype so that the condition properly > short-circuits (is_base_of is true even for incomplete T). Note that the first proposed fix would just paper over the UB, whereas the second fix would eliminate it IIUC.=