https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92326
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>: https://gcc.gnu.org/g:09f041390245da60411a9f0e08c4bedf7430585a commit r10-7706-g09f041390245da60411a9f0e08c4bedf7430585a Author: Martin Sebor <mse...@redhat.com> Date: Mon Apr 13 15:31:44 2020 -0600 PR c/92326 - wrong bound in zero-length array diagnostics gcc/c-family/ChangeLog: PR c/92326 * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid printing array bound for flexible array members. gcc/testsuite/ChangeLog: PR c/92326 * c-c++-common/Warray-bounds-8.c: New test. * gcc.dg/Warray-bounds-46.c: Adjust expected format of flexible array memebrs in diagnostics. * gcc.dg/Warray-bounds-49.c: Same.