[PATCH] Instantiate incomplete class used in template method.

Richard Smith richard at metafoo.co.uk
Mon Apr 27 16:48:01 PDT 2015


OK, this seems like a clear step forward.


================
Comment at: lib/Sema/SemaTemplateInstantiateDecl.cpp:4440
@@ +4439,3 @@
+    if (const TagDecl *TD = dyn_cast<TagDecl>(D)) {
+      Decl *Inst = SubstDecl(D, CurContext, TemplateArgs);
+      CurrentInstantiationScope->InstantiatedLocal(D, Inst);
----------------
Is there anything we can assert here to check that we're not accidentally taking this codepath for a tag decl that should be separately instantiated?

http://reviews.llvm.org/D8281

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list