bugs in simple for loop

Ruslan Shevchenko Ruslan@Shevchenko.Kiev.UA
Thu Jan 14 07:06:00 GMT 1999


ÀÌ Ãµ¿ì ±³¼ö (x2606) wrote:

> Dear Sir, Today I found a striking bug. It occurs in the very simple
> situation like the following.
>
>         #include <cstddef>
>         #include <iostream>
>
>   main(){
>                 for(size_t i = 9; i >= 0 ; i-- ) cout << i << endl;
>         }
>

size_t    *always*   >=0.

So, this is not bug.

(Hmm, is egcs produce warning here ?)






More information about the Gcc-bugs mailing list