Re: [PATCH] c: Assorted fixes for flexible array members in unions [PR119001]

2025-02-27 Thread Qing Zhao
Hi, Jakub, Thanks a lot for fixing this issues. Qing > On Feb 26, 2025, at 03:53, Jakub Jelinek wrote: > > Hi! > > r15-209 allowed flexible array members inside of unions, but as the > following testcase shows, not everything has been adjusted for that. > Unlike structures, in unions flexible

Re: [PATCH] c: Assorted fixes for flexible array members in unions [PR119001]

2025-02-26 Thread Joseph Myers
On Wed, 26 Feb 2025, Jakub Jelinek wrote: > Hi! > > r15-209 allowed flexible array members inside of unions, but as the > following testcase shows, not everything has been adjusted for that. > Unlike structures, in unions flexible array member (as an extension) > can be any of the members, not ju

[PATCH] c: Assorted fixes for flexible array members in unions [PR119001]

2025-02-26 Thread Jakub Jelinek
Hi! r15-209 allowed flexible array members inside of unions, but as the following testcase shows, not everything has been adjusted for that. Unlike structures, in unions flexible array member (as an extension) can be any of the members, not just the last one, as in union all members are effectivel