Path: utzoo!mnetor!uunet!tektronix!tekcrl!tekgvs!larryh From: larryh@tekgvs.TEK.COM (Larry Hutchinson) Newsgroups: comp.sys.mac.programmer Subject: MPW C bug, again! Message-ID: <3331@tekgvs.TEK.COM> Date: 8 Apr 88 16:42:58 GMT Organization: Tektronix Inc., Beaverton, Or. Lines: 37 Keywords: MPW C bug Just when you thought it was safe to add! An old bug that was supposedly fixed in MPW C ver 2.0.2 turns out to have only been wounded. The following is the shortest program that I have found that exibits the problem: main(argc,argv) int argc; char *argv[]; { double skuz[10]; double foo=4; skuz[5]= 2.3; skuz[5] += 4*foo; /* this add fails */ printf("skuz= %g\r",skuz[5]); } The value printed is 2.3, which is the symptom of the old bug. It is just a little harder to make it appear now. I am getting a little tired of this bug. Does anyone know when MPW 3.0 is due out? I am really looking forward to a whole new round of bugs. Larry Hutchinson, Tektronix, Inc. PO Box 500, MS 50-383, Beaverton, OR 97077 UUCP: [uunet|ucbvax|decvax|ihnp4|hplabs]!tektronix!tekgvs!larryh ARPA: larryh%tekgvs.TEK.COM@RELAY.CS.NET CSNet: larryh@tekgvs.TEK.COM PS No, I haven't reported the bug to Apple. (excuse: I don't have a modem and would procrastinate anyway.)