[clang] [clang][constexpr] Evaluate parenthesized array new with the allocated bound (PR #228675)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 3 21:39:11 PDT 2026


================
@@ -0,0 +1,39 @@
+// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s
+// expected-no-diagnostics
+
----------------
tbaederr wrote:

We already have SemaCXX/new-delete.cpp

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


More information about the cfe-commits mailing list