pcc compiler error
Bjorn Eriksen
ber at enea.UUCP
Sun Feb 10 09:33:03 AEST 1985
The following code tests the contents of a pointer to a struct and
makes pcc generate a "compiler error" message. Is it just bad programming
style or a compiler bug?
struct xy {
int x;
int y;
} a;
main()
{
struct xy *p;
p = &a;
if (*p) {
/* compiler error: zzzcode- bad type */
}
}
--
Bjorn Eriksen
ENEA DATA Sweden
UUCP: {decvax,philabs}!mcvax!enea!ber
ARPA: decvax!mcvax!enea!ber at berkeley.arpa
mcvax!enea!ber at seismo.arpa
More information about the Comp.lang.c
mailing list