[PATCH] D67919: [Diagnostics] Warn if enumeration type mismatch in conditional expression
Dávid Bolvanský via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 23 08:44:16 PDT 2019
xbolva00 marked an inline comment as done.
xbolva00 added inline comments.
================
Comment at: test/Sema/warn-conditional-emum-types-mismatch.c:19
+
+int get_flag_anon_enum(int cond) {
+ return cond ? A : C;
----------------
Gcc warns here, but Clang does not warn when A != C..
So not sure here..
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67919/new/
https://reviews.llvm.org/D67919
More information about the cfe-commits
mailing list