pcc compiler error

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Sat Feb 23 10:56:44 AEST 1985


> > >		struct xy *p;
> > >	 	if (*p) {
> > >			/* compiler error: zzzcode- bad type */
>
> Since the code is legal, lint has no reason to complain.  The
> error message you received indicated that the back end of your
> compiler was not able to generate code.  There are C compilers
> that will compile this program.

As previously posted, this is NOT legal C.  What does it mean to
test a struct for zeroness?  One could presumably add something to
C for this case but it seems pretty bogus to me.



More information about the Comp.lang.c mailing list