[clang] [Clang] Complete the element type when list-initializing an array of unknown bound (PR #221488)
Shengxin Pei via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 7 06:37:51 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
----------------
TPPPP72 wrote:
We don't need these comments
https://github.com/llvm/llvm-project/pull/221488
More information about the cfe-commits
mailing list