[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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



Reply to: