efriedma added inline comments.

================
Comment at: clang/test/Sema/vla.c:134
+  // expected-warning@+1{{variable length array folded to constant array as an 
extension}}
+  char (*a9)[] = (char[2][ksize]) {{1,2,3,4},{4,3,2,1}};
+
----------------
aaron.ballman wrote:
> Doesn't this violate the constraints in C17 6.5.2.5p1, "The type name shall 
> specify a complete object type or an array of unknown size, but not a 
> variable-length array type"?
Yes, this is a constraint violation.  This patch downgrades the error to a 
warning, for compatibility with older versions of clang.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98363/new/

https://reviews.llvm.org/D98363

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to