[PATCH] D24289: Add warning when assigning enums to bitfields without an explicit unsigned underlying type

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 8 09:17:52 PDT 2016


rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

lgtm


================
Comment at: lib/Sema/SemaChecking.cpp:7841
@@ +7840,3 @@
+    if (S.getLangOpts().CPlusPlus11 &&
+        !BitfieldEnumDecl->getIntegerTypeSourceInfo() &&
+        BitfieldEnumDecl->getNumPositiveBits() > 0 &&
----------------
Got it.


https://reviews.llvm.org/D24289





More information about the cfe-commits mailing list