[clang] [Clang] Implement P2747 constexpr placement new (PR #104586)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 21 07:06:01 PDT 2024


================
@@ -309,7 +309,7 @@ namespace placement_new_delete {
   constexpr bool bad(int which) {
     switch (which) {
     case 0:
-      delete new (placement_new_arg{}) int; // ref-note {{call to placement 'operator new'}} \
+      delete new (placement_new_arg{}) int; // ref-note {{this placement new expression is not yet supported in constant expression}} \
----------------
AaronBallman wrote:

Same question here as above.

https://github.com/llvm/llvm-project/pull/104586


More information about the cfe-commits mailing list