]> granicus.if.org Git - clang/commit
Fix checking for permitted results of constant expressions.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 29 Sep 2019 05:58:31 +0000 (05:58 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 29 Sep 2019 05:58:31 +0000 (05:58 +0000)
commit9a10e4b7c930cab5f4a8fc6f74e157e44fba807f
tree90aeb7d37d554dc755c04001f5a906dccd6ec0e7
parent39625a79bf6faeb91cd2e33c60b54b5221b79c65
Fix checking for permitted results of constant expressions.

In the presence of mutable state, we need to check whether temporaries
involved in a constant expression have permissible values at the end of
the overall evaluation, rather than at the end of the evaluation of the
initializer of the temporary.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373160 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/SemaCXX/constant-expression-cxx1y.cpp