[clang] [clang][Sema] Recheck array size once the element type is complete (PR #219817)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 10 21:46:15 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">;
----------------
shafik wrote:
I think we should stick w/ the `err_array_too_large` too large format and not try and be too fancy.
https://github.com/llvm/llvm-project/pull/219817
More information about the cfe-commits
mailing list