erik.pilkington added inline comments.

================
Comment at: lib/Sema/SemaTemplateInstantiate.cpp:2916-2918
+  if (const VarDecl *VD = dyn_cast<VarDecl>(D))
+    if (VD->isInitCapture())
+      return nullptr;
----------------
Why are we failing to find the instantiation of the VarDecl in this case? It 
seems to me like we should of picked it up in the `for` loop above. Is it not 
getting added to the LocalInstantiationScope? Or are we looking in the wrong 
LocalInstantiationScope?


Repository:
  rC Clang

https://reviews.llvm.org/D50122



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D50122: Complex Va... Balaji Iyer via Phabricator via cfe-commits
    • [PATCH] D50122: Compl... Erik Pilkington via Phabricator via cfe-commits

Reply via email to