Kupa-Martin wrote: @shafik We dont have a dedicated cpp test for this. I can add one if you want, but clang/test/Sema/warn-compare-enum-types-mismatch.c runs clang both on C and C++ mode, so I didnt think it necessary. https://github.com/llvm/llvm-project/pull/84068