[PATCH] D102936: [CUDA] Work around compatibility issue with libstdc++ 11.1.0
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 21 16:26:12 PDT 2021
tra added inline comments.
================
Comment at: clang/lib/Headers/cuda_wrappers/complex:79
+#if _GLIBCXX_RELEASE == 11
+#define __failed_assertion __cuda_failed_assertion
+#endif
----------------
yaxunl wrote:
> May I ask where is __cuda_failed_assertion defined? Thanks.
The function is not defined anywhere.
>From https://bugs.llvm.org/show_bug.cgi?id=50383#c14
> Its sole purpose is to be a non-constexpr function that can be called during constant
> evaluation to cause a compilation error. It can't be called at runtime, because
> compilation will fail if control flow ever results in calling it. So no definition is needed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102936/new/
https://reviews.llvm.org/D102936
More information about the cfe-commits
mailing list