[PATCH] MS ABI: Diagnose unspecified inheritance model ptrs in the best case

Richard Smith richard at metafoo.co.uk
Thu Jul 24 15:09:30 PDT 2014


================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:2509-2510
@@ +2508,4 @@
+def warn_unspecified_ms_inheritance : Warning<
+  "the 'full_generality' inheritance model was selected for this class, "
+  "this will result in very large pointers-to-members">,
+  InGroup<UnspecifiedInheritanceModel>, DefaultIgnore;
----------------
Maybe this should also mention that (a) this happened because the class type was incomplete at the point where the inheritance model was first required, and (b) a different inheritance model might be picked in a different TU?

http://reviews.llvm.org/D4651






More information about the cfe-commits mailing list