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

Bug#438791: libstdc++6-4.1-dev: cstring header brings size_t, strlen, strcat into global namespace



Package: libstdc++6-4.1-dev
Version: 4.1.1-21
Severity: normal
Subject: libstdc++6-4.1-dev: cstring header brings size_t, strlen, strcat into global namespace

*** Please type your report below this line ***

The following code can be compiled without errors (with "using" commented out):

  #include <cstring>

  // using namespace std ;

  int main()  {
    const size_t sz = 5 ;
    char a [sz] = "" ;
    char b [sz] = "" ;
    strcat(a, b) ;
    size_t c = strlen(a) ;
    return  0 ;
  }

with command:
$ g++ -Wall bug.cpp


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-486
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

Versions of packages libstdc++6-4.1-dev depends on:
ii  g++-4.1                4.1.1-21          The GNU C++ compiler
ii  gcc-4.1-base           4.1.1-21          The GNU Compiler Collection (base
ii libc6-dev 2.3.6.ds1-13etch2 GNU C Library: Development Librari
ii  libstdc++6             4.1.1-21          The GNU Standard C++ Library v3

libstdc++6-4.1-dev recommends no packages.

-- no debconf information






Reply to: