diff options
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplate.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index f3cd2e41fbd..339a084d7af 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -3171,10 +3171,13 @@ Sema::CheckMemberFunctionSpecialization(CXXMethodDecl *FD, Instantiation, FD->getLocation(), false, TSK_ExplicitSpecialization)) return true; + + // FIXME: Check for specialization-after-instantiation errors and such. - // FIXME: Mark the new declaration as a member function specialization. - // We may also want to mark the original instantiation as having been - // explicitly specialized. + // Note that this function is an explicit instantiation of a member function. + Instantiation->setTemplateSpecializationKind(TSK_ExplicitSpecialization); + FD->setInstantiationOfMemberFunction(FunctionInTemplate, + TSK_ExplicitSpecialization); // Save the caller the trouble of having to figure out which declaration // this specialization matches. |