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

Bug#279185: g++-3.4: g++ Fails to compile valid code



Package: g++-3.4
Version: 3.4.2-3
Severity: important

namespace a {}
namespace b {}
namespace c {
   namespace a = b;
}

This fails to compile with:

$ gcc-3.4 test.cpp
test.cpp:4: error: declaration of `namespace a' conflicts with
test.cpp:1: error: previous declaration of `namespace a' here

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages g++-3.4 depends on:
ii  gcc-3.4                     3.4.2-3      The GNU C compiler
ii  gcc-3.4-base                3.4.2-3      The GNU Compiler Collection (base 
ii  libc6                       2.3.2.ds1-18 GNU C Library: Shared libraries an
ii  libstdc++6-dev              3.4.2-3      The GNU Standard C++ Library v3 (d

-- no debconf information



Reply to: