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

Details

Provenance
dimAuthored on May 5 2023, 4:19 PM
Parents
rG494e7dfdbe6e: daemon: EINTR from kevent(2) is not a fatal error
Branches
Unknown
Tags
Unknown