Incorrect runtime behavior involving comparison

Horst von Brand
Mon Jan 10 15:31:00 GMT 2000

"Matt Austern" <> said:
> The correct output from the following program is:
> t1 is false
> t2 is false

You are comparing two "should be equal" floating point expressions,
depending on rounding and the phase of the moon, you will get different
Horst von Brand                   
Casilla 9G, Viña del Mar, Chile                               +56 32 672616

More information about the Gcc-bugs mailing list