[clang] [clang] Avoid printing overly large integer/_BitInt numbers in static assertion failure diagnostics #71675 (PR #145053)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 26 08:20:18 PDT 2025
================
@@ -196,7 +196,7 @@ enum GH59352 { // expected-warning {{enumeration values exceed range of largest
BigVal = 66666666666666666666wb
};
_Static_assert(BigVal == 66666666666666666666wb); /* expected-error {{static assertion failed due to requirement 'BigVal == 66666666666666666666wb'}}
- expected-note {{expression evaluates to '11326434445538011818 == 66666666666666666666'}}
+ expected-note {{expression evaluates to '11326434445538011818 == 39D2F941E420AAAAA<U+0000><U+0000><U+0000>...<U+0000><U+0000><U+0000>39D2F941E420AAAAA'}}
----------------
erichkeane wrote:
This seems VERY wrong here...
https://github.com/llvm/llvm-project/pull/145053
More information about the cfe-commits
mailing list