DEFINITE bug in Turbo C 2.0 (WHO'S GOT THE BUG????)

Karl Heuer karl at haddock.ima.isc.com
Fri Mar 23 07:43:24 AEST 1990


In article <946 at lectroid.sw.stratus.com> bad at pearl.sw.stratus.com (Bruce Dumes) writes:
>In article <802 at zeusa.UUCP> hendrik at 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 at ima.ima.isc.com or harvard!ima!karl), The Walking Lint



More information about the Comp.lang.c mailing list