From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AD9C5384D199; Fri, 26 Aug 2022 20:38:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD9C5384D199 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661546291; bh=SI/BQJ1EvAVsgIMNMVx0XJ/y8lf7hYyNmuW4+zUWqQU=; h=From:To:Subject:Date:From; b=CbQUKtytDkwA1fn+EVCId+O/AFzEDPad+NJrImgljta6mA3/au+NSo9fVn/4MKezh JXJNUEftQXmyfOCI5oQVu3azeOX4jjqcupN1zEqGwhM6Nhx62QxzSWGe5lXDr+Y6TD 30fWpoJO6NGdak2GWGeqpotI8/8COktq1TfO6Ljo= From: "nikolasklauser at berlin dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106759] New: __has_builtin doesn't report __is_nothrow_constructible as supported Date: Fri, 26 Aug 2022 20:38:11 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nikolasklauser at berlin dot de 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=3D106759 Bug ID: 106759 Summary: __has_builtin doesn't report __is_nothrow_constructible as supported Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nikolasklauser at berlin dot de Target Milestone: --- __has_builtin normally reports if builtin type traits are supported, but __has_builtin(__is_nothrow_constructible) is false. Reproducer: (Godbolt: https://godbolt.org/z/T6d7M6jx7) #if __has_builtin(__is_nothrow_constructible) # error "has builtin" // should error here, but doesn't #endif int main() { return __is_nothrow_constructible(int); }=