libc++ expects to be able to call _VSTD::signbit(__u)
as part of <compare>
.
However, in our LibM/math.h, we #define signbit(x) __builtin_signbit(x)
.
serenity/Userland/Libraries/LibM/math.h
Line 81 in b0f546c
This causes the code to look like return ::std::__builtin_signbit(__u)
, which is clearly nonsense.
Some things to check:
The impact of this is that a c++ file that just contains:
#include <utility> // or <compare>
int main() {}
compiled with -std=c++20 does not compile for serenity with Clang.
cc @BertalanD
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too