]> granicus.if.org Git - clang/commit
Fix handling of objects under construction during constant expression
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 10 May 2019 20:05:32 +0000 (20:05 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 10 May 2019 20:05:32 +0000 (20:05 +0000)
commite11abb81c1c5aebac7ab214321ef04743c73b57b
tree18652da32541bcb9b1da8d470cd63a7cceaed590
parentf1b0224cf7e311571cd99184b98d1c4db519923d
Fix handling of objects under construction during constant expression
evaluation.

It's not enough to just track the LValueBase that we're evaluating, we
need to also track the path to the objects whose constructors are
running.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360464 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/APValue.h
include/clang/Basic/DiagnosticASTKinds.td
lib/AST/APValue.cpp
lib/AST/ExprConstant.cpp
test/SemaCXX/constant-expression-cxx1y.cpp