summaryrefslogtreecommitdiffstats
path: root/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-04-17 08:42:31 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-04-17 08:42:31 +0000
commit394588fbc8246a2576422b17ee685c55f369ba8a (patch)
tree975cef9041ff11688f0297bba13baeae002cbab6 /lib/Sema/SemaTemplate.cpp
parent900d0461f297de41ad382bb003051420e878fce3 (diff)
SemaTemplate.cpp: Appease msvc to get rid of default argument in lambda definition.
clang\lib\Sema\SemaTemplate.cpp(1826) : error C2064: term does not evaluate to a function taking 1 arguments git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r--lib/Sema/SemaTemplate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp
index 2ef144f158..e4d2a41f5a 100644
--- a/lib/Sema/SemaTemplate.cpp
+++ b/lib/Sema/SemaTemplate.cpp
@@ -1722,8 +1722,8 @@ TemplateParameterList *Sema::MatchTemplateParametersToScopeSpecifier(
// explicitly specialized.
bool SawNonEmptyTemplateParameterList = false;
- auto CheckExplicitSpecialization = [&](SourceRange Range,
- bool Recovery = false) {
+ auto CheckExplicitSpecialization = [&](SourceRange Range) {
+ bool Recovery = false;
if (SawNonEmptyTemplateParameterList) {
Diag(DeclLoc, diag::err_specialize_member_of_template)
<< !Recovery << Range;