[clang] [clang] Emit bad shift warnings (PR #70307)

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 18 06:22:42 PDT 2024


alexfh wrote:

Now there's a different and more subtle side-effect of this patch: https://gcc.godbolt.org/z/YP3EfGern

The invalid expression `1 << 59` leads to the compiler silently ignoring the in-class initializer of the static data member.

https://github.com/llvm/llvm-project/pull/70307


More information about the cfe-commits mailing list