[clang] [Clang] prevent an assertion failure caused by C++ constant expression checks in C23 floating conversions (PR #174113)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 12 08:28:20 PST 2026
================
@@ -401,3 +401,11 @@ bool issue155507(v2int16_t a, v2int16_t b) {
constexpr bool b2 = (bool)nullptr;
_Static_assert(!b2);
+
+double ghissue173847(double a) {
----------------
shafik wrote:
We should have also tested `long double` which also crashes in this case.
nit, I thought the naming convention was `gh173847`?
https://github.com/llvm/llvm-project/pull/174113
More information about the cfe-commits
mailing list