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: "chris dot olton at iti-global dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 Aug 2017 22:28:30 +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
--- Comment #4 from chris.olton@iti-global.com ---
(In reply to joseph@codesourcery.com from comment #3)
> Because the type doesn't exist,
I don't know what you mean by a type that "doesn't exist". A declared but
undefined struct is incomplete but exists nevertheless.
> neither does a pointer to such a type, as pointer types can only be
> derived from types that exist, not from types that don't exist.
Are you saying that pointers can't point to incomplete types? That's expressly
allowed by pointers. Especially in the case of a member pointing to its own
struct.