Xref: utzoo unix-pc.bugs:77 comp.sys.att:5516 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pacbell!rtech!gonzo!daveb From: daveb@gonzo.UUCP (Dave Brower) Newsgroups: unix-pc.bugs,comp.sys.att Subject: Re: UNIX-PC Floating point weirdness Summary: Congratulations... Message-ID: <507@gonzo.UUCP> Date: 11 Feb 89 04:53:19 GMT References: <129@bsadrc.UUCP> Reply-To: daveb@gonzo.UUCP (Dave Brower) Distribution: na Organization: Gonzo Media Group Lines: 30 In article <129@bsadrc.UUCP> carver@bsadrc.UUCP (Darrel R. Carver) writes: >Now, compiling this program (call it ftest), I get this error: > >>>>| $ cc -o ftest ftest.c >>>>| "ftest.c", line 18: compiler error: allocation fails, op STAR > >If I change line 18 to > >18>| f_return->ret_val = a; >18x| return(a); > >It compiles, no problem. I do not consider the second form >acceptable. In addition some of the code I have from various sources >will do the type of assignments in the example. > >I can usually go around this by breaking down the subexpression, but >it is annoying. Any comments? flames? Congratulations, you are now entering hacker/guru-hood in that you have found a compiler bug and figured out an ugly but passable workaround. With a 3b1, you are out of luck getting a fix from the vendor, so you need to use form B or bust. If you want a supported compiler, use gcc (:-(. sometimes, others :-). -dB -- If life was like the movies, the music would match the picture. {sun,mtxinu,hoptoad}!rtech!gonzo!daveb daveb@gonzo.uucp