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

chris.olton@iti-global.com gcc-bugzilla@gcc.gnu.org
Wed Aug 2 22:28:00 GMT 2017


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.


More information about the Gcc-bugs mailing list