[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
Tue Mar 26 20:32:46 PDT 2024


================
@@ -271,6 +271,9 @@ Improvements to Clang's diagnostics
 - Clang now correctly diagnoses no arguments to a variadic macro parameter as a C23/C++20 extension.
   Fixes #GH84495.
 
+- ``-Wmicrosoft`` or ``-Wgnu`` is now required to diagnose C99 flexible
+  array members in a union or alone in a struct. Fixes #GB84565.
----------------
kees wrote:

Oh thank you! Nice catch.

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


More information about the cfe-commits mailing list