[Bug c/81677] Can't declare pointer to array of incomplete type in struct
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 2 22:38:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81677
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Let me try to explain this in easier English rather than standard talk.
An array to incomplete types are invalid and cannot exist as a type as defined
by the C standard (as referenced by Joseph). Therefor a pointer to an array to
incomplete type is invalid.
That is an array to an incomplete type is not an incomplete type but rather not
a type at all.
Does that make better sense?
More information about the Gcc-bugs
mailing list