[PATCH] D46909: [Sema] Fix assertion when constructor is disabled with partially specialized template.
Volodymyr Sapsai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 15 15:39:11 PDT 2018
vsapsai updated this revision to Diff 146944.
vsapsai added a comment.
Potentially, VarTemplateDecl is susceptible to the same bug as
ClassTemplateSpecializationDecl. But I wasn't able to trigger it. And based on
code I've convinced myself that the mentioned early exit in
Sema::CheckVarTemplateId is equivalent to reusing available partial
specialization. So seems like no changes for VarTemplateDecl are required.
https://reviews.llvm.org/D46909
Files:
clang/lib/Sema/SemaTemplateInstantiate.cpp
clang/test/SemaTemplate/partial-spec-instantiate.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46909.146944.patch
Type: text/x-patch
Size: 13099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180515/dc703b54/attachment-0001.bin>
More information about the cfe-commits
mailing list