[clang] [Clang][Sema]: Allow flexible arrays in unions and alone in structs (PR #84428)

Kees Cook via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 8 09:48:39 PST 2024


================
@@ -0,0 +1,43 @@
+// RUN: %clang_cc1 %s -verify=c -fsyntax-only -fflex-array-extensions
+
+// The test checks that flexible array members do not emit warnings when
+// -fflex-array-extensions when used in a union or alone in a structure.
+
+struct already_hidden {
+	int a;
----------------
kees wrote:

I ran the helper script a few times, actually. It never flagged this, just syntax in SemaDecl.cpp

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


More information about the cfe-commits mailing list