This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/81677] Can't declare pointer to array of incomplete type in struct


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]