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

--- 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.

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