[llvm-bugs] [Bug 42972] Declaration conflict between __clang_cuda_math_forward_declares.h and libstdc++

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 22 16:17:59 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=42972

Jon Chesterfield <jonathanchesterfield at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Jon Chesterfield <jonathanchesterfield at gmail.com> ---
This is fixed on trunk.

I suspect the problem was that glibc defines these functions as constexpr (for
some c++ versions) and __clang_cuda_math_forward_declares.h did not.

Clang 10.0 did not include constexpr in the definition of __DEVICE__, I haven't
checked what the status was for trunk as of when this bug was opened.

On trunk, the functions are now defined as constexpr, and the failure mode
reported here no longer reproduces.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200722/4753c052/attachment.html>


More information about the llvm-bugs mailing list