Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!elroy!orion.cf.uci.edu!uci-ics!ucla-cs!kirkaas From: kirkaas@oahu.cs.ucla.edu (paul kirkaas) Newsgroups: comp.sys.att Subject: 3b1 cc (v3.5) compiler bug? Message-ID: <22279@shemp.CS.UCLA.EDU> Date: 26 Mar 89 08:15:35 GMT Sender: news@CS.UCLA.EDU Reply-To: kirkaas@cs.ucla.edu (paul kirkaas) Organization: UCLA Computer Science Department Lines: 18 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@cs.ucla.edu