Re: C PATCH to rephrase error for flexible array members (PR c/71742)

2016-07-29 Thread Jeff Law
On 07/29/2016 09:22 AM, Marek Polacek wrote: As outlined in the PR, for code such as struct S { int :1; int a[]; }; the error message "flexible array member in otherwise empty struct" is not entirely correct, because the structure isn't otherwise empty. Martin Sebor suggested to re

C PATCH to rephrase error for flexible array members (PR c/71742)

2016-07-29 Thread Marek Polacek
As outlined in the PR, for code such as struct S { int :1; int a[]; }; the error message "flexible array member in otherwise empty struct" is not entirely correct, because the structure isn't otherwise empty. Martin Sebor suggested to rephrase the error message as in the following.