commit | 4d478472f59491043a9041a775de3c4e4176e3e4 | [log] [tgz] |
---|---|---|
author | Shafik Yaghmour <shafik.yaghmour@intel.com> | Thu Jul 28 15:26:15 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Jul 28 15:33:46 2022 -0700 |
tree | cd2d922a1d40d153a99887c7e3979897142f8329 | |
parent | 28282869cab1485cc4ace5068c7ece9144ca3405 [diff] |
[Clang] Diagnose ill-formed constant expression when setting a non fixed enum to a value outside the range of the enumeration values 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 GitOrigin-RevId: b3645353041818f61e2580635409ddb81ff5a272