[Bug c/120354] 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

2025-05-22 Thread alansnape3058 at gmail dot com via Gcc-bugs
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)

[Bug c/120354] New: 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

2025-05-19 Thread alansnape3058 at gmail dot com via Gcc-bugs
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:

[Bug c/120354] 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

2025-05-19 Thread alansnape3058 at gmail dot com via Gcc-bugs
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

[Bug c/120353] New: Flex array struct referenced in the middle via type alias of forward declaration is not reported by -Wflex-array-member-not-at-end option

2025-05-19 Thread alansnape3058 at gmail dot com via Gcc-bugs
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