mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 06:46:07 +00:00
(no commit message)
llvm-svn: 132544
This commit is contained in:
parent
55d4989304
commit
d4de06861d
@ -4587,7 +4587,7 @@ Sema::ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC,
|
||||
NewFD->setInvalidDecl();
|
||||
} else if (isFunctionTemplateSpecialization) {
|
||||
if (CurContext->isDependentContext() && CurContext->isRecord()
|
||||
&& !isFriend) {
|
||||
&& !isFriend && !getLangOptions().Microsoft) {
|
||||
Diag(NewFD->getLocation(), diag::err_function_specialization_in_class)
|
||||
<< NewFD->getDeclName();
|
||||
NewFD->setInvalidDecl();
|
||||
|
@ -5313,6 +5313,8 @@ bool
|
||||
Sema::CheckFunctionTemplateSpecialization(FunctionDecl *FD,
|
||||
TemplateArgumentListInfo *ExplicitTemplateArgs,
|
||||
LookupResult &Previous) {
|
||||
|
||||
return false;
|
||||
// The set of function template specializations that could match this
|
||||
// explicit function template specialization.
|
||||
UnresolvedSet<8> Candidates;
|
||||
|
Loading…
x
Reference in New Issue
Block a user