[PATCH] Fix for PR18393 - emit error when abstract type is returned by value

Richard Smith richard at metafoo.co.uk
Tue Sep 23 16:42:04 PDT 2014


We need to defer this check in the case where the type in question is still being defined.

================
Comment at: lib/Sema/SemaDecl.cpp:6497-6498
@@ -6496,3 +6496,4 @@
   // Check that the return type is not an abstract class type.
   // For record types, this is done by the AbstractClassUsageDiagnoser once
   // the class has been completely parsed.
+  if (SemaRef.RequireNonAbstractType(
----------------
This comment describes how this case is intended to be handled; we need more digging to figure out what's actually wrong here.

http://reviews.llvm.org/D4769






More information about the cfe-commits mailing list