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

Aryan Kadole via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 20 10:54:34 PST 2026


================
@@ -10566,6 +10637,10 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
       }
     }
 
+    if (getLangOpts().BoundsSafety) {
----------------
ak1932 wrote:

> The whole point of this warning is to collect data to help us make decisions about name lookup

Oh I see. I'll remove it then.

> the bounds safety extension flag isn't even functional, so the guard would be pretty meaningless anyway.

The guard had worked with the flags `-Xclang -fexperimental-bounds-safety`, so I thought it would be fine for now. But, it's better to remove it if we need the community consensus on the feature 👍

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


More information about the cfe-commits mailing list