mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
DR2338 clarified that it was undefined behavior to set the value outside the range of the enumerations values for an enum without a fixed underlying type. We should diagnose this with a constant expression context. Differential Revision: https://reviews.llvm.org/D130058