pcc compiler error
Kevin Szabo
ksbszabo at wateng.UUCP
Mon Feb 11 18:10:24 AEST 1985
> struct xy {
> int x;
> int y;
> } a;
> main()
> {
> struct xy *p;
> p = &a;
> if (*p) {
> /* compiler error: zzzcode- bad type */
> }
> }
>This is not legitimate code (and the compiler should point this out).
Our BSD 4.2 compiler generates the same error when I just compile it.
As Marty Shannon says, the code is incorrect. The thing that mystifies
me is that LINT didn't even peep when I sent the code to it. Thus
whatever is wrong with CC is also confusing lint, but in a way that
causes LINT to incorrectly shut up.
Kevin
--
Kevin Szabo watmath!wateng!ksbszabo (U of Waterloo VLSI Group, Waterloo Ont.)
More information about the Comp.lang.c
mailing list