DEFINITE bug in Turbo C 2.0

Steve Watt steve at wattres.UUCP
Fri Mar 23 14:40:46 AEST 1990


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)
>Run by Turbo C it gives:
>
>144
>100
>132
>110
>
>And run by Microsoft C (under XENIX):
>
>132
>110
>132
>110
>
Some more votes:
Microsoft C under SCO UNIX gives
132 110
132 110

AT&T C under SCO UNIX gives
132 110
132 110

cc under Ultrix gives
144 100
144 110 (?)

VAX C under Ultrix gives
144 110
144 110

cc on the DECStation gives
144 100
144 100

Interesting...
I would be inclined to agree with Microsoft's interpretation...
but I can sure understand most of the others, except for cc under Ultrix
giving different answers based on whether or not it's a function call.
-- 
Steve Watt
...!claris!wattres!steve		wattres!steve at claris.com also works
If you torture your data long enough, it'll eventually confess.



More information about the Comp.lang.c mailing list