https://github.com/AaronBallman closed
https://github.com/llvm/llvm-project/pull/81760
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/efriedma-quic approved this pull request.
LGTM
Note you can get a similar crash using `enum x { X = (__uint128_t)(1<<64) };`.
I'm a little surprised we haven't run into this before C23.
https://github.com/llvm/llvm-project/pull/81760
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Aaron Ballman (AaronBallman)
Changes
C23 added the wb and uwb suffixes to generate a bit-precise integer value.
These values can be larger than what is representable in intmax_t or uintmax_t.
We were asserting that an enumerator constant