[clang] [clang][Sema] Recheck array size once the element type is complete (PR #219817)
Akash Manna via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 11 02:21:33 PDT 2026
================
@@ -6727,6 +6727,9 @@ def err_vm_func_decl : Error<
"function declaration cannot have variably modified type">;
def err_array_too_large : Error<
"array is too large (%0 elements)">;
+def err_array_size_too_large : Error<
+ "array is too large (%0 bytes), which exceeds maximum allowed size of "
+ "%1 bytes">;
----------------
akash-manna-sky wrote:
Done — dropped the max-size tail, it's now just `array is too large (N bytes)`, same shape as `err_array_too_large`.
Is this fine ? @erichkeane
https://github.com/llvm/llvm-project/pull/219817
More information about the cfe-commits
mailing list