[Bug c/71742] Wrong formulation of "error: flexible array member in otherwise empty struct"
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 6 17:08:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71742
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-07-06
CC| |msebor at gcc dot gnu.org
Ever confirmed|0 |1
Severity|normal |trivial
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
I was going to resolve this report as invalid on the basis that "empty struct"
could be interpreted to mean struct with no named members (there is no
definition of "empty struct" in C) but decided to confirm in the end because
GCC documents Empty Structs as structures with no members and zero size:
https://gcc.gnu.org/onlinedocs/gcc/Empty-Structures.html
Rephrasing the error as
flexible array member in a struct with no named members
would avoid the contradiction.
More information about the Gcc-bugs
mailing list