================
@@ -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.
----------------
efriedma-quic wrote:

This seems like something we should address somehow.  Or at least have some 
kind of test coverage demonstrating the gaps.

https://github.com/llvm/llvm-project/pull/229697
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to