Your message dated Sun, 27 Jan 2008 12:53:57 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#462745: gcc-4.2: for (;;) { .. } while (..); doesn't give 
error
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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 unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23.1 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-4.2 depends on:
ii  binutils                2.18-1           The GNU assembler, linker and bina
ii  cpp-4.2                 4.2.2-4          The GNU C preprocessor
ii  gcc-4.2-base            4.2.2-4          The GNU Compiler Collection (base 
ii  libc6                   2.7-4            GNU C Library: Shared libraries
ii  libgcc1                 1:4.3-20080116-1 GCC support library
ii  libgomp1                4.3-20080116-1   GCC OpenMP (GOMP) support library

Versions of packages gcc-4.2 recommends:
ii  libc6-dev                     2.7-4      GNU C Library: Development Librari

-- debconf-show failed



--- End Message ---
--- Begin Message ---
Timo Sirainen writes:
> 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.

Of course.  This is legal C or C++ code consisting of an empty for
loop followed by an empty while loop.  If you think this is a problem,
switch to Ada.

-- 
Ludovic Brenta.



--- End Message ---

Reply via email to