[Bug libstdc++/115740] gcc-14.1.1: __glibcxx_assert_fail const-evaluation breaks clang/hip device code

lockalsash at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jul 1 23:35:41 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115740

--- Comment #6 from Lockal <lockalsash at gmail dot com> ---
Oops, did not expect that someone already reported this to llvm/llvm-project.

This was noticed as an issue of ROCm, not CUDA. Did not try CUDA, probably
won't work with gcc-14 due to multiple reasons (starting with version check in
preprocessor).

But I think it has nothing to do with LLVM:

1) I did not enable -D_GLIBCXX_ASSERTIONS - I don't want see calls to
__glibcxx_assert_fail (device code can't comprehend this)

2) Specifically clang dislikes calls to host code from device code


More information about the Gcc-bugs mailing list