Path: utzoo!attcan!uunet!cs.utexas.edu!samsung!xylogics!transfer!lectroid!pearl!bad From: bad@pearl.sw.stratus.com (Bruce Dumes) Newsgroups: comp.lang.c Subject: Re: DEFINITE bug in Turbo C 2.0 (WHO'S GOT THE BUG????) Message-ID: <946@lectroid.sw.stratus.com> Date: 22 Mar 90 18:37:28 GMT References: <802@zeusa.UUCP> Sender: usenet@lectroid.sw.stratus.com Reply-To: bad@pearl.sw.stratus.com (Bruce Dumes) Organization: Stratus Computer, Software Engineering. Lines: 58 In article <802@zeusa.UUCP> hendrik@zeusa.UUCP (Hendrik Vermooten) writes: >Here is a definite bug in C (discovered by Renier v. Wyk) > >Run by Turbo C it gives: > >144 >100 >132 >110 > >And run by Microsoft C (under XENIX): > >132 >110 >132 >110 > hey , interestingly enough, when I ran it on my sun 3/80 using cc I got: 132 100 132 100 when I put a semi-colon after the #include and recompiled with cc I got: 132 100 132 110 and when I ran it on my sun compiled with gcc I got: 144 100 144 100 and when I ran it on a Stratus Computer with the Stratus C compiler I got: 132 110 132 110 which is the only version that agreed with Microsoft. (If the versions were voting I guess this one would win). WHO'S GOT THE BUG????? -- Bruce Dumes | "Massachusetts has the best bad@pearl.sw.stratus.com | politicians money can buy" Stratus Computer, Inc.