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 > between the C and C++ front ends. > > The attached patch corrects the problem so both zero-length arrays and > flexible array members are formatted consistently by both front ends > (i.e., as T[0] and T[]). > > Tested on x86_64-linux. This is fine.
Though I don't see that it actually addressed the qemu or grub2 issues raised by Martin L. ISTM those really should be a separate bug independent of the wrong- bound in the diagnostic. It looks like Martin L's claim is that for qemu & grub2 we've got new false positives from the warning. Thoughts? Jeff