[clang] [Clang][Sema] Reject array prvalue operands (PR #140702)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 20 20:03:23 PDT 2025
================
@@ -16,4 +15,13 @@ int main()
f0(a1);
f1(a2);
f2(a3);
+
+ using IA = int[];
+ void(+IA{ 1, 2, 3 }); // expected-error {{array prvalue}}
----------------
Sirraide wrote:
Can you add some tests here to make sure that we don’t complain about array glvalues?
https://github.com/llvm/llvm-project/pull/140702
More information about the cfe-commits
mailing list