Re: Bitten by a bug

new topic     » goto parent     » topic index » view thread      » older message » newer message

Robert Craig wrote:
> 
> DB James wrote:
> > As with Vincent, thanks for looking into this.  Perhaps the little "c" at
> > the
> > end of "WATCOM C/C++ Version 11.0c" stands for "caught ya" smile
> 
> It sounds like WATCOM 11.0c has a bug, but I've also
> seen cases where someone submits a slightly incorrect
> program to the translator, and it runs without an error
> message because translated code has very few error checks.
> The person then runs the program with the interpreter 
> and the interpreter catches a small error like type_check
> failure. The person corrects the type of a variable
> and then discovers that his .exe built from the translator
> does not run the same as when he uses the interpreter.
> i.e. you might want to delete your result.txt file, rebuild
> your .exe and go through it again carefully.
> 
> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a>
> 

Hello Robert,

I agree that a test should be done carefully, as the purpose of a test is to be
as sure as possible about something.  I did as you suggested, deleted both
result.txt and the old compiled version of the test, ran the test program from
the interpreter, then compiled the test program and immediately ran it.  Here are
the results, the same as I reported before:

----------------------------------------------------------------------
Test results for values of x (set at 75 before each operation)

With "x=x/100": x=0.750000
With "x=x/100.0": x=0.750000
With "x/=100": x=0.750000
With "x/=100.0": x=0.750000

End test results for values of x

Test results for values of x (set at 75 before each operation)

With "x=x/100": x=44169448.000000
With "x=x/100.0": x=0.750000
With "x/=100": x=44169452.000000
With "x/=100.0": x=0.750000

End test results for values of x
----------------------------------------------------------------------

So, it does seem to be a real bug in the WATCOM C/C++ Version 11.0c compiler.

FYI,there is this tidbit from the readme.txt for the compiler:

----------------------------------------------------------------------
All files licensed by Microsoft, IBM, Novell, Tenberry,
Pharlap and Blue Sky Software have been removed in this version.

The Windows SDK components and Microsoft Foundation Classes are
not included in the 11.0c update. If you wish to do Windows
programming you are required to have a prior version of Watcom
C/C++ 11.0, especially for MFC support. Watcom C/C++ 10.6 may
work, but this has not been tested.
----------------------------------------------------------------------

I'll be installing a later version of the Watcom compiler soon.

--Quark

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu