[PATCH] D131528: [Clang] Restrict non fixed enum to a value outside the range of the enumeration values warning to context requiring a constant expression
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 14 22:07:56 PDT 2022
shafik added a comment.
In D131528#3719430 <https://reviews.llvm.org/D131528#3719430>, @ayermolo wrote:
> Was this and previous change intended to capture this case?
> const enum NumberType neg_one = (enum NumberType) ((enum NumberType) 0 - (enum NumberType) 1);
That was not intended and I plan on fixing that.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131528/new/
https://reviews.llvm.org/D131528
More information about the cfe-commits
mailing list