https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120354
--- Comment #2 from Ella Ma ---
Sorry, I made a mistake when making the example.
This problem happens when the flex-array member is not the last, **and the
members below it are in a record type**. (GCC will report if they are in
integer types)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120354
Bug ID: 120354
Summary: Flexible array union in the middle is not reported by
-Wflex-array-member-not-at-end option when flexible
array member is not the last one
Product:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120354
--- Comment #1 from Ella Ma ---
Details and comparison with Clang in https://godbolt.org/z/h8qYhK6rY
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120353
Bug ID: 120353
Summary: Flex array struct referenced in the middle via type
alias of forward declaration is not reported by
-Wflex-array-member-not-at-end option
Product: g