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: "joseph at codesourcery 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:05:04 +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 #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
In C90, arrays of incomplete types are forbidden because incomplete types
are not (before C11) object types. See footnote 17 in subclause 6.1.2.5.
In C99 this becomes a constraint in 6.7.5.2#1.