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

Bug#406550: libstdc++5-3.3-dev: gettext macro is defined after '#include <memory>'



Package: libstdc++5-3.3-dev
Version: 1:3.3.5-13
Severity: normal


After a simple '#include <memory>' in a C++ file the "gettext" macro is
defined.

--- cut here --- test.cc ------------
#include <memory>

#ifdef gettext
#error "The gettext macro is already defined!"
#endif
--- cut here --- end of test.cc -----

$ g++ -O2 -c test.cc
test.cc:5:2: #error "The gettext macro is already defined!"

I did some analysis and with adding the '-E' flag to g++ and found that
the gettext macro is defined at /usr/include/libintl.h:108 from package
libc6-dev.

I am not sure that after #including the <memory>, the gettext macro
shuld be defined.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.19
Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2)

Versions of packages libstdc++5-3.3-dev depends on:
ii  g++-3.3               1:3.3.5-13         The GNU C++ compiler
ii gcc-3.3-base 1:3.3.5-13 The GNU Compiler Collection (base ii libc6-dev 2.3.2.ds1-22sarge4 GNU C Library: Development Librari
ii  libstdc++5            1:3.3.5-13         The GNU Standard C++ Library v3

-- no debconf information



Reply to: