Re: [committed] libstdc++: Guard tr2::bases and tr2::direct_bases with __has_builtin

2024-02-08 Thread Jonathan Wakely
On Thu, 8 Feb 2024 at 16:02, Jonathan Wakely wrote: > Tested x86_64-linux. Pusued to trunk. I'll backport it too. > Only to gcc-13 though, because __has_builtin(__bases) is false for gcc-12.

[committed] libstdc++: Guard tr2::bases and tr2::direct_bases with __has_builtin

2024-02-08 Thread Jonathan Wakely
Tested x86_64-linux. Pusued to trunk. I'll backport it too. -- >8 -- 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/