Skip to content

Commit b256939

Browse files
committed
[Clang][Sema] Fix missing warning when comparing mismatched enums in C mode
Factored logic from `CheckImplicitConversion` into new methods `Expr::getEnumConstantDecl` and `Expr::getEnumCoercedType` for use in `checkEnumArithmeticConversions`. Fix llvm#29217
1 parent b17348c commit b256939

9 files changed

+3855
-3381
lines changed

clang/docs/ReleaseNotes.rst

+3
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ Improvements to Clang's time-trace
161161

162162
Bug Fixes in This Version
163163
-------------------------
164+
- Fixed missing warnings when comparing mismatched enumeration constants
165+
in C (`#29217 <https://github.com/llvm/llvm-project/issues/29217>`).
166+
164167
- Clang now accepts elaborated-type-specifiers that explicitly specialize
165168
a member class template for an implicit instantiation of a class template.
166169

0 commit comments

Comments
 (0)