Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!sdd.hp.com!ucsd!ames!sgi!davea@quasar.wpd.sgi.com From: davea@quasar.wpd.sgi.com (David B. Anderson) Newsgroups: comp.sys.sgi Subject: Re: 3.2 C compiler bug Message-ID: <59726@sgi.sgi.com> Date: 9 May 90 20:38:55 GMT References: <9005071321.AA27323@> Sender: davea@quasar.wpd.sgi.com Reply-To: davea@quasar.UUCP (David B. Anderson) Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 17 In article <9005071321.AA27323@> lmo@lsr-vax.UUCP ("Lance M. Optican - LMO") writes: >There is a bug in the Irix C-compiler: [ ] >The following program prints zero but it should print 1. >If you modify the program so that foo() does not return a struct it works >as expected. [ ] >This seems to be a problem with the function prototyping. If you >change to the old-fashioned 'C' convention, the problem goes away: Thanks for the report. The bug has been fixed for the release after 3.2. Regards, [ David B. Anderson Silicon Graphics (415)335-1548 davea@sgi.com ] [``What can go wrong?'' --Calvin and Hobbes]