[cfe-dev] Why ClassTemplatePartialSpecializationDecl derived from ClassTemplateSpecializationDecl and not from ClassTemplateDecl ?

Roman Popov via cfe-dev cfe-dev at lists.llvm.org
Thu Oct 5 12:47:01 PDT 2017


Hi all,

One thing that confused me in Clang AST is
that ClassTemplatePartialSpecializationDecl is derived
from ClassTemplateSpecializationDecl, and thus is a TypeDecl.

What is the reasoning behind this decision?

I thought that partial specialization is still a template in C++, and only
when it is fully specialized it becomes a real class.

-Roman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20171005/64c25083/attachment.html>


More information about the cfe-dev mailing list