]> 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>
Fri, 16 Feb 2024 15:11:09 +0000 (15:11 +0000)
commite1a1e817fcaf998d8b2f6ba0e041d4a1d42c3352
tree30f5aa431564426aa2de96dfa339d680b5c4f317
parentf516fc119770d75cb856faccba1d129a9c091b29
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.

(cherry picked from commit 5fb204aaf34b68c427f5b2bfb933fed72fe3eafb)
libstdc++-v3/include/tr2/type_traits