[clang] [clang] Fix C++20 list initialization of const references to arrays of unknown bound (PR #218225)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 26 04:14:34 PDT 2026
================
@@ -48,3 +48,24 @@ void gh151716_f() {
}
} // namespace One
+
+namespace Two {
+
+// A braced-init-list may also bind to a const lvalue reference to an array of
+// unknown bound, not just to an rvalue reference. This used to crash in
+// CodeGen with "type mismatch in call argument!" (GH215501).
----------------
zyn0217 wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/218225
More information about the cfe-commits
mailing list