This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81677] Can't declare pointer to array of incomplete type in struct
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 Aug 2017 22:38:17 +0000
- Subject: [Bug c/81677] Can't declare pointer to array of incomplete type in struct
- Auto-submitted: auto-generated
- References: <bug-81677-4@http.gcc.gnu.org/bugzilla/>
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?