HomeFreeBSD

Apply libc++ fix for compiling <type_traits> with gcc 13

Description

Apply libc++ fix for compiling <type_traits> with gcc 13

Merge commit 484e64f7e7b2 from llvm-project (by Roland McGrath):

[libc++] Use __is_convertible built-in when available

https://github.com/llvm/llvm-project/issues/62396 reports that
GCC 13 barfs on parsing <type_traits> because of the declarations
of `struct __is_convertible`.  In GCC 13, `__is_convertible` is a
built-in, but `__is_convertible_to` is not.  Clang has both, so
using either should be fine.

Reviewed By: #libc, philnik

Differential Revision: https://reviews.llvm.org/D149313

Reported by: Mark Millard <marklmi@yahoo.com>
MFC after: 3 days

(cherry picked from commit 2df58f190731634be67e90b7c453dee587b4ea27)

Details

Provenance
dimAuthored on May 5 2023, 4:19 PM
Parents
rGa89f1ce51b6d: riscv: remove unused string from swtch.S
Branches
Unknown
Tags
Unknown