[libc++][HIP] call to 'sqrt' is ambiguous
in lambda functions
#119076
Labels
clang:headers
Headers provided by Clang, e.g. for intrinsics
Here is the problematic HIP code (i. e. code is heavily affected by
__clang_hip_runtime_wrapper.h
), which compiles with libstdc++, but fails with libc++:This code on godbolt: https://godbolt.org/z/jds86rzK9. Note that there it uses clang-17, as hip after that is affected by ROCm/clr#100. But after applying fix for clr the issue is reproducible with newer versions of clang:
This affects other functions from
cmath
(sqrt/cbrt/hypot/isinf). Usingsqrtl
works, but this is not a solution for a templated code, and there is no functions likeisinfl
.The text was updated successfully, but these errors were encountered: