We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0cb8f7 commit 2d4de5aCopy full SHA for 2d4de5a
clang/lib/AST/Interp/IntegralAP.h
@@ -210,7 +210,6 @@ template <bool Signed> class IntegralAP final {
210
}
211
212
static bool comp(IntegralAP A, IntegralAP *R) {
213
- assert(false);
214
*R = IntegralAP(~A.V);
215
return false;
216
clang/test/AST/Interp/literals.cpp
@@ -52,6 +52,9 @@ namespace i128 {
52
constexpr int128_t Two = (int128_t)1 << 1ul;
53
static_assert(Two == 2, "");
54
55
+ constexpr uint128_t AllOnes = ~static_cast<uint128_t>(0);
56
+ static_assert(AllOnes == static_cast<uint128_t>(-1), "");
57
+
58
#if __cplusplus >= 201402L
59
template <typename T>
60
constexpr T CastFrom(__int128_t A) {
0 commit comments