[PATCH] D131528: [Clang] Restrict non fixed enum to a value outside the range of the enumeration values warning to context requiring a constant expression

Alexander Yermolovich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 12 09:41:04 PDT 2022


ayermolo added a comment.

Was this and previous change intended to capture this case?
 const enum NumberType neg_one = (enum NumberType) ((enum NumberType) 0 - (enum NumberType) 1);


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