]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Guard tr2::bases and tr2::direct_bases with __has_builtin
authorJonathan Wakely <jwakely@redhat.com>
Thu, 8 Feb 2024 15:38:35 +0000 (15:38 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 8 Feb 2024 15:58:14 +0000 (15:58 +0000)
commit5fb204aaf34b68c427f5b2bfb933fed72fe3eafb
tree5d21eb7da31674ce6d49c57e24d2b040ef1bd46e
parentd9459129ea8f8c3cbd6150b90e842decba7952a3
libstdc++: Guard tr2::bases and tr2::direct_bases with __has_builtin

These non-standard extensions use GCC-specific built-ins. Use
__has_builtin to avoid errors when Clang compiles this header.

See https://github.com/llvm/llvm-project/issues/24289

libstdc++-v3/ChangeLog:

* include/tr2/type_traits (bases, direct_bases): Use
__has_builtin to check if required built-ins are supported.
libstdc++-v3/include/tr2/type_traits