[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:44:34 GMT 2024


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

--- Comment #9 from Lockal <lockalsash at gmail dot com> ---
Sam James, that's a separate issue - https://bugs.gentoo.org/935314

I modified my /etc/clang/gentoo-hardened.cfg to contain:

-Xarch_host -D_GLIBCXX_ASSERTIONS

and it works fine, except it does not work and fails few lines below in #else
block -
https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/bits/c%2B%2Bconfig#L610-L625

And it can't be fixed in gentoo-hardened.cfg with this #else


More information about the Gcc-bugs mailing list