[clang] [clang][Interp] Handle CXXScalarValueInitExprs (PR #67147)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 22 19:34:53 PDT 2023
================
@@ -31,6 +31,13 @@ static_assert(b, "");
constexpr int one = true;
static_assert(one == 1, "");
+constexpr bool b2 = bool();
----------------
shafik wrote:
There are a lot of scalars: https://eel.is/c++draft/basic.types.general#9
Can we have a test for each case?
https://github.com/llvm/llvm-project/pull/67147
More information about the cfe-commits
mailing list