================
Comment at: lib/Sema/SemaTemplateInstantiateDecl.cpp:4406-4407
@@ +4405,4 @@
+      const TagDecl *DeclToInstantiate = nullptr;
+      if (TagDecl *Def = TD->getDefinition())
+        DeclToInstantiate = Def;
+      else if (!TD->isThisDeclarationADefinition() && !TD->isFreeStanding())
----------------
What's the purpose of this change? If we have a reference to a particular 
`TagDecl`, why don't we always instantiate that declaration?

http://reviews.llvm.org/D8281

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



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to