gulfem added a comment. Can somebody please clarify this? Is the following code results `undefined` behavior?
enum E1 {e11=-4, e12=4}; E1 x2b = static_cast<E1>(8); `constexpr E1 x2 = static_cast<E1>(8)` seems like `undefined`, so `-Wenum-constexpr-conversion` is triggered. We started seeing `-Wenum-constexpr-conversion` in our codebase after https://reviews.llvm.org/D131307, but we stopped seeing them after this review. Is the first example that I show above still undefined, but `-Wenum-constexpr-conversion` is not going to warn in such cases? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131528/new/ https://reviews.llvm.org/D131528 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits