Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: DEFINITE bug in Turbo C 2.0 (WHO'S GOT THE BUG????) Message-ID: <16259@haddock.ima.isc.com> Date: 22 Mar 90 21:43:24 GMT References: <802@zeusa.UUCP> <946@lectroid.sw.stratus.com> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 15 In article <946@lectroid.sw.stratus.com> bad@pearl.sw.stratus.com (Bruce Dumes) writes: >In article <802@zeusa.UUCP> hendrik@zeusa.UUCP (Hendrik Vermooten) writes: >>Here is a definite bug in C (discovered by Renier v. Wyk) >>[Example of code which produces different results on two compilers, one of >>them being inconsistent between two similar expressions in the same code] This is not a compiler bug. The order in which side-effects take place between sequence points is unspecified, so both answers are "valid". >[Several other compilers give still different results] >WHO'S GOT THE BUG????? The author of the code. Karl W. Z. Heuer (karl@ima.ima.isc.com or harvard!ima!karl), The Walking Lint