-
Notifications
You must be signed in to change notification settings - Fork 10
Conversation
ec8f774
to
a7ba003
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about value templates with default arguments?
lib/AST/ASTImporter.cpp
Outdated
@@ -4174,7 +4174,7 @@ Decl *ASTNodeImporter::VisitTemplateTypeParmDecl(TemplateTypeParmDecl *D) { | |||
// is created. | |||
|
|||
// FIXME: Import default argument. | |||
return TemplateTypeParmDecl::Create(Importer.getToContext(), | |||
auto ToD = TemplateTypeParmDecl::Create(Importer.getToContext(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixme above is no longer relevant.
a7ba003
to
f2cc841
Compare
f2cc841
to
e75e4b6
Compare
Added new test for this case:
Added new test for VarTemplateDecl. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good, but only type kind of template arguments are used at the test. Does it work similarly with value and template type of arguments?
Can one of the admins verify this patch? |
Not important for a while, because all specializations/instantiations have the concrete parameter. We did not see any error caused by this. |
Fixes #310