[clang] [clang] Diagnose VLA types from an enclosing function in local classes and blocks (PR #229697)
Ivan Ugryumov via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 18 04:16:03 PDT 2026
================
@@ -2370,6 +2370,14 @@ QualType Sema::BuildArrayType(QualType T, ArraySizeModifier ASM,
}
}
+ // Remember where the bound of a VLA is evaluated. Bounds in a function
+ // prototype are evaluated in that function, which doesn't exist yet;
+ // those are not recorded and never diagnosed.
----------------
Servall4 wrote:
Added fixme tests for this
https://github.com/llvm/llvm-project/pull/229697
More information about the cfe-commits
mailing list