Bug#462745: gcc-4.2: for (;;) { .. } while (..); doesn't give error

2008-01-27 Thread Timo Sirainen
Package: gcc-4.2 Version: 4.2.2-4 Severity: normal Given code like: for (;;) { } while (xyz); gcc gives no kind of an error or warning. It just ignores the while(). Also tested that this happens with gcc 3.3 and 4.3-20080116-1. -- System Information: Debian Release: lenny/sid APT prefers

Bug#462745: gcc-4.2: for (;;) { .. } while (..); doesn't give error

2008-01-27 Thread Ludovic Brenta
Timo Sirainen [EMAIL PROTECTED] writes: On 27.1.2008, at 13.53, Ludovic Brenta wrote: Timo Sirainen writes: for (;;) { } while (xyz); gcc gives no kind of an error or warning. It just ignores the while (). Also tested that this happens with gcc 3.3 and 4.3-20080116-1. Of course. This