[clang] Diagnose potential size confusion with VLA params [contd.] (PR #181550)

Yeoul Na via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 20 13:23:08 PST 2026


================
@@ -1114,7 +1114,8 @@ def VexingParse : DiagGroup<"vexing-parse">;
 def VLAUseStaticAssert : DiagGroup<"vla-extension-static-assert">;
 def VLACxxExtension : DiagGroup<"vla-cxx-extension", [VLAUseStaticAssert]>;
 def VLAExtension : DiagGroup<"vla-extension", [VLACxxExtension]>;
-def VLA : DiagGroup<"vla", [VLAExtension]>;
+def VLASizeConfusion : DiagGroup<"vla-potential-size-confusion">;
----------------
rapidsna wrote:

Ah yes, you're right. It changes the meaning of name 'n' itself within the scope, and that's actually the same situation.

https://github.com/llvm/llvm-project/pull/181550


More information about the cfe-commits mailing list