For P0784R7: support placement new-expressions in constant evaluation.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 3 Oct 2019 00:39:35 +0000 (00:39 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 3 Oct 2019 00:39:35 +0000 (00:39 +0000)
commitb542602c5f351d66b0a4213f537fd6fb8dde8dcd
tree0c4be96a0f3b7a5e94398fee08c980c9f187a371
parent19ad5239713ce0f2742ca2f9e30ff4663ee5ad90
For P0784R7: support placement new-expressions in constant evaluation.

For now, we restrict this support to use from within the standard
library implementation, since we're required to make parts of the
standard library that use placement new work, but not permitted to
make uses of placement new from user code work.

llvm-svn: 373547
clang/include/clang/Basic/DiagnosticASTKinds.td
clang/lib/AST/ExprConstant.cpp
clang/lib/AST/Interp/State.h
clang/test/SemaCXX/cxx2a-constexpr-dynalloc.cpp