[clang] Don't wrap immediate invocations in ConstantExprs within constexpr initializers (PR #89565)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 23 06:19:35 PDT 2024
================
@@ -9,8 +9,7 @@ using MaxBitInt = _BitInt(128);
constexpr _BitInt(2) A = 0;
constexpr _BitInt(2) B = A + 1;
-constexpr _BitInt(2) C = B + 1; // expected-warning {{from 2 to -2}} \
- // ref-warning {{from 2 to -2}}
+constexpr _BitInt(2) C = B + 1;
----------------
erichkeane wrote:
Losing this diagnostic is definitely incorrect, this is one we should have kept.
https://github.com/llvm/llvm-project/pull/89565
More information about the cfe-commits
mailing list