diff options
author | Mark de Wever <koraq@xs4all.nl> | 2024-08-20 19:13:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 19:13:27 +0200 |
commit | e0441d587b3c5c5d11b08cbcfbbbb66ea8185510 (patch) | |
tree | 3c399ce554824abd814358d2f1dd93c9992fa242 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | e0326b668efda1d4ed7969c1a6cca44a487d24b6 (diff) | |
download | llvm-e0441d587b3c5c5d11b08cbcfbbbb66ea8185510.zip llvm-e0441d587b3c5c5d11b08cbcfbbbb66ea8185510.tar.gz llvm-e0441d587b3c5c5d11b08cbcfbbbb66ea8185510.tar.bz2 |
[libc++][chono] Use hidden friends for leap_second comparison. (#104713)
The function
template<class Duration>
requires three_way_comparable_with<sys_seconds, sys_time<Duration>>
constexpr auto operator<=>(const leap_second& x, const
sys_time<Duration>& y) noexcept;
Has a recursive constrained. This caused an infinite loop in GCC and is
now hit by https://github.com/llvm/llvm-project/pull/102857.
A fix would be to make this function a hidden friend, this solution is
propsed in LWG4139.
For consistency all comparisons are made hidden friends. Since the issue
causes compilation failures no additional test are needed.
Fixes: https://github.com/llvm/llvm-project/issues/104700
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions