Re: [PATCH] correct format of flexible array members in diagnostics (PR c/92326)

2020-04-14 Thread Martin Liška
On 4/13/20 9:41 PM, Martin Sebor wrote: On 4/13/20 1:25 PM, Jeff Law wrote: On Mon, 2020-04-13 at 12:39 -0600, Martin Sebor via Gcc-patches wrote: GCC 10 has changed the formatting of zero-length arrays in diagnostics to include their bound, but it also inadvertently added the zero bound to

Re: [PATCH] correct format of flexible array members in diagnostics (PR c/92326)

2020-04-13 Thread Martin Sebor via Gcc-patches
On 4/13/20 1:25 PM, Jeff Law wrote: On Mon, 2020-04-13 at 12:39 -0600, Martin Sebor via Gcc-patches wrote: GCC 10 has changed the formatting of zero-length arrays in diagnostics to include their bound, but it also inadvertently added the zero bound to flexible array members which are

Re: [PATCH] correct format of flexible array members in diagnostics (PR c/92326)

2020-04-13 Thread Jeff Law via Gcc-patches
On Mon, 2020-04-13 at 12:39 -0600, Martin Sebor via Gcc-patches wrote: > GCC 10 has changed the formatting of zero-length arrays in diagnostics > to include their bound, but it also inadvertently added the zero bound > to flexible array members which are confusingly represented differently >

[PATCH] correct format of flexible array members in diagnostics (PR c/92326)

2020-04-13 Thread Martin Sebor via Gcc-patches
GCC 10 has changed the formatting of zero-length arrays in diagnostics to include their bound, but it also inadvertently added the zero bound to flexible array members which are confusingly represented differently between the C and C++ front ends. The attached patch corrects the problem so both