3b1 cc (v3.5) compiler bug?
paul kirkaas
kirkaas at oahu.cs.ucla.edu
Sun Mar 26 18:15:35 AEST 1989
The following code produces the indicated error when compiling on the 3b1.
I believe the expression in question is legal C; and it compiles OK on
a Sun.
------------------------------------------------------------------------
struct dstr {double x;};
struct istr {int i;};
main()
{
struct dstr ds,*dsP;
struct istr is,*isP;
dsP = &ds;
isP = &is;
ds.x--; /* OK */
isP->i--; /* OK */
dsP->x--; /* "tst.c", line 11: compiler error: allocation fails, op STAR */
}
Paul Kirkaas
kirkaas at cs.ucla.edu
More information about the Comp.sys.att
mailing list