[clang] [clang] fix divide by zero in ComplexExprEvaluator (PR #104666)

via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 17 02:05:14 PDT 2024


================
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 -fsyntax-only %s
+
+auto f() { return 43273096 / 65536j; }
----------------
cor3ntin wrote:

can you move that to , for example `clang/test/SemaCXX/constant-expression-cxx11.cpp`
and make sure that actually always get evaluated?
maybe `constexpr auto a = `43273096 / 65536j;`

https://github.com/llvm/llvm-project/pull/104666


More information about the cfe-commits mailing list