File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1015,6 +1015,17 @@ class FunctionTemplateDecl : public RedeclarableTemplateDecl {
1015
1015
return getTemplatedDecl ()->isInstantiatedFromMemberTemplate () ||
1016
1016
isThisDeclarationADefinition ();
1017
1017
}
1018
+
1019
+ // This bit closely tracks 'RedeclarableTemplateDecl::InstantiatedFromMember',
1020
+ // except this is per declaration, while the redeclarable field is
1021
+ // per chain. This indicates a template redeclaration which
1022
+ // is compatible with the definition, in the non-trivial case
1023
+ // where this is not already a definition.
1024
+ // This is only really needed for instantiating the definition of friend
1025
+ // function templates, which can have redeclarations in different template
1026
+ // contexts.
1027
+ // The bit is actually stored in the FunctionDecl for space efficiency
1028
+ // reasons.
1018
1029
void setInstantiatedFromMemberTemplate (FunctionTemplateDecl *D) {
1019
1030
getTemplatedDecl ()->setInstantiatedFromMemberTemplate ();
1020
1031
RedeclarableTemplateDecl::setInstantiatedFromMemberTemplate (D);
You can’t perform that action at this time.
0 commit comments