diff options
author | Nicolas Lesser <blitzrakete@gmail.com> | 2018-07-12 18:45:41 +0000 |
---|---|---|
committer | Nicolas Lesser <blitzrakete@gmail.com> | 2018-07-12 18:45:41 +0000 |
commit | b6d5c5871857f101cd88e99d115b310abf565bba (patch) | |
tree | 940942ca50bf3e4306d422bb38664cc7f5a4d6e5 /clang/lib/Sema/Sema.cpp | |
parent | 9436570cbdee971868943c2214a71a25f90773c4 (diff) | |
download | bcm5719-llvm-b6d5c5871857f101cd88e99d115b310abf565bba.tar.gz bcm5719-llvm-b6d5c5871857f101cd88e99d115b310abf565bba.zip |
[C++17] Disallow lambdas in template parameters (PR33696).
Summary: This revision disallows lambdas in template parameters, as reported in PR33696.
Reviewers: rsmith
Reviewed By: rsmith
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D37442
llvm-svn: 336930
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index d6d105c3b04..b26cf3c0432 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -163,7 +163,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, ExprEvalContexts.emplace_back( ExpressionEvaluationContext::PotentiallyEvaluated, 0, CleanupInfo{}, - nullptr, false); + nullptr, ExpressionEvaluationContextRecord::EK_Other); PreallocatedFunctionScope.reset(new FunctionScopeInfo(Diags)); |