From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 354313858D28; Thu, 29 Sep 2022 10:30:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 354313858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664447414; bh=PWK2NGfVrbekj9Dx3pPSIbvpDTISUJHxSYmNMzMGDHo=; h=From:To:Subject:Date:From; b=KlQsLhh1Ylo4HkTTRdrTW0btkFuYeCeC9FMqpEdnhpXOqHOXBnpGQdI19ijkvqMq3 j5UIekgNDR9bxiDqu6bEB5/Y1eaYqTeYVUy17Hfw9WwiLbQZ6ZnWI7hecdfUCq5C2s TrmCpfh1XC/8b0BVoD6VJs7fxsU9ygfU2vqyhKqM= From: "roi.jacobson1 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107085] New: __reference_constructs_from_temporary does not detect static up-cast Date: Thu, 29 Sep 2022 10:30:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 Bug ID: 107085 Summary: __reference_constructs_from_temporary does not detect static up-cast Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: roi.jacobson1 at gmail dot com Target Milestone: --- This example: struct Base {}; struct Derived : Base {}; static_assert(__reference_constructs_from_temporary(Base&, Derived)); fails to compile, but according to p2255r1 it seems correct to me.=