]> granicus.if.org Git - clang/commit
[AST] Don't track lambda captures when checking a potential constant expression.
authorErik Pilkington <erik.pilkington@gmail.com>
Thu, 5 Apr 2018 00:12:05 +0000 (00:12 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Thu, 5 Apr 2018 00:12:05 +0000 (00:12 +0000)
commit6137fb61ced60b179afcbf610bfb230af6232ed8
tree45c04b6a06d4d6b9f61d5296b6d614d59be3071c
parent34709b24899e9a1ca2f9c438628f6220fa56a7bb
[AST] Don't track lambda captures when checking a potential constant expression.

Fixes PR36054.

Differential revision: https://reviews.llvm.org/D45194

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@329244 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/SemaCXX/cxx1z-constexpr-lambdas.cpp