[PATCH] D50122: Complex Variable defined in InitCapture Crash fix
Erik Pilkington via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 8 12:53:30 PDT 2018
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
More information about the cfe-commits
mailing list