Sujet : Re: Struct Error
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 24. Jan 2025, 00:50:28
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vmukk4$1s5se$3@dont-email.me>
References : 1 2 3
User-Agent : Pan/0.161 (Chasiv Yar; )
On Thu, 23 Jan 2025 10:54:10 +0000, bart wrote:
Wouldn't this also be the case here:
struct scenet *child;
};
The struct is incomplete, but it still knows how to do pointer
arithmetic with that member.
No, because there is no pointer arithmetic involved in processing that
declaration.
Of course you will get a suitable error in a subsequent expression that
does involve such pointer arithmetic, if the struct has not been fully
defined by that point.