| Issue |
73953
|
| Summary |
__cpp_lib_three_way_comparison not defined when it should be
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
QrczakMK
|
https://godbolt.org/z/z67c5EErb
The following code fails the `#error` with `-std=c++20 -stdlib=libc++`:
```
#include <compare>
#include <version>
std::strong_ordering Test(int a, int b) {
return a <=> b;
}
#if defined(__cpp_impl_three_way_comparison) && \
!defined(__cpp_lib_three_way_comparison)
#error The library supports three-way comparison but claims it does not
#endif
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs