From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 43D6F3858C53; Thu, 29 Sep 2022 11:11:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43D6F3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664449910; bh=/tfZ5PHUdRsmQI8UlDooJMB5pOGot43f/U7jdMK0ZIw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C2dgLp74hsNs5OsEs2jXENPqtM3TqmPOiPn0DO9sjnnhFN+bixOQKpM/rKJKtDZDi 1glY8fWd8w4dFho2lnfCLZLATXJvcSYw69TyLF66eHKHPTpsDbS8X4Lq4zGLsKdm7c b57hcrOtBhgSf3ys9FFjktSz4FHqFA4GMXTOcMzQ= From: "roi.jacobson1 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107085] __reference_constructs_from_temporary does not detect static up-cast Date: Thu, 29 Sep 2022 11:11:50 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: roi.jacobson1 at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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=3D107085 --- Comment #3 from Roy Jacobson --- Thanks! But a Base const& is still not detected: static_assert(__reference_constructs_from_temporary(Base const&, Derived)); And in this case I think it _is_ a bug that this doesn't compile?=