[clang] [Clang] Complete the element type when list-initializing an array of unknown bound (PR #221488)

Stanislav Bardyuk via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 7 12:01:53 PDT 2026


================
@@ -0,0 +1,35 @@
+// RUN: %clang_cc1 -std=c++17 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
+
+// List-initializing a temporary array of unknown bound from an empty list
+// creates a zero-length array whose element type was never completed, and
+// destructor lookup on the uninstantiated (or forward-declared) element type
+// crashed. https://github.com/llvm/llvm-project/issues/217883
----------------
kodlan wrote:

removed

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


More information about the cfe-commits mailing list