From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E2976383CCF2; Wed, 31 Aug 2022 10:41:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2976383CCF2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661942470; bh=fAf5gRRGOzSMjAI28LJGPw/7FFe/VBQD5Zh3B+M9yPk=; h=From:To:Subject:Date:From; b=SXcuJVq0h/Yr3d/s2BVSuYqjwuU480YpHTdHVJp9Z1tGo9UBpuWnlqtAN+hTLU05p 50bGW19FSawvnkoSoTNJexaXBoe01IkXyADWL6hdKM6JY634O0kbBcxAWccyGkMxla kmEtG5QjkBgWLCV6Eyds5EuPA7cAL79uxtdjGcW4= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106784] New: Add __is_convertible built-in Date: Wed, 31 Aug 2022 10:41:10 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi 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: --- 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=3D106784 Bug ID: 106784 Summary: Add __is_convertible built-in Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- This is supported by Clang already, and would be very beneficial for libstd= c++. The std::is_convertible (and is_nothrow_convertible) type trait is used wid= ely in the std::lib, but is currently implemented in pure C++ as a class templa= te. A built-in would improve compile times. We already have __is_constructible and __is_assignable, and the nothrow for= ms of those.=