https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985
Tom de Vries changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985
--- Comment #6 from Tom de Vries ---
Author: vries
Date: Thu Sep 13 10:27:12 2018
New Revision: 264267
URL: https://gcc.gnu.org/viewcvs?rev=264267=gcc=rev
Log:
[debug] DWARF: add DW_AT_count to zero-length arrays
2018-09-13 Omar Sandoval
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985
Tom de Vries changed:
What|Removed |Added
Keywords||patch
--- Comment #5 from Tom de Vries
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985
--- Comment #3 from Omar Sandoval ---
They are not equivalent in GCC, see
https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html. In particular, flexible
arrays cannot be the only member in a struct, cannot be a member of a union,
cannot be used as
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985
--- Comment #2 from Andrew Pinski ---
Considering GCC considers zero length array as the same as flexible array
types, I don't think this is really an issue.
>this fails in some cases where zero-length and flexible array types are not
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985
--- Comment #1 from Omar Sandoval ---
Posted a patch here: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00994.html.