From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5942B3851C04; Thu, 29 Sep 2022 10:46:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5942B3851C04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664448407; bh=Z+6FuM50ZNcHhz800NMseyT+iiLesQOFNlUnah9f19E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YVGBMMFRuZZDwn8hAGJ9mRqmpRd+VdJ87AYi0+DwyvltzQ9aq5pbJSCJu0ohOX92y n7cAcvVnEGV35fJqI7mcYtPOH4gQ5jRxACSKE9oFIz4xjgAYcDQaVmgHEH3birNsLC TCvm8djh34oyTCbe/+QNfoMjpFOL/gy+SnHa7HtQ= From: "redi at gcc dot gnu.org" 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 10:46:47 +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: redi at gcc dot gnu.org 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: resolution bug_status 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 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #2 from Jonathan Wakely --- #include using namespace std; struct Base {}; struct Derived : Base {}; static_assert( conjunction_v, is_constructible> ); This fails (as expected) and so the reference_constructs_from_temporary is required to be false.=