[PATCH] D13419: Fix several problems at the intersection of template instantiations and visibility
Keno Fischer via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 28 21:22:20 PDT 2016
loladiro added inline comments.
================
Comment at: lib/AST/DeclCXX.cpp:1349-1354
+ while (!CTD->isMemberSpecialization()) {
+ auto *NewCTD = CTD->getInstantiatedFromMemberTemplate();
+ if (!NewCTD)
break;
CTD = NewCTD;
}
----------------
rsmith wrote:
> The same bug exists in `VarDecl::getTemplateInstantiationPattern`; can you fix it there too?
Do you have a test case that shows a problem with the current definition of that function? Would like to include it if possible. I tried cooking one up, but wasn't particularly successful.
Repository:
rL LLVM
https://reviews.llvm.org/D13419
More information about the cfe-commits
mailing list