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 20:31:43 +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 #2 from chris.olton@iti-global.com ---
This isn't an array of incomplete type, but a pointer-to-array of incomplete
type; not just any incomplete type, but struct that is guaranteed to be
complete when the outermost } is encountered. As I interpret C90, if a member
can point to its own struct, then a member should be able to point to an array
of its own struct.