Bug#96539: libstdc++2.10-dev: Error in bastring.h
Package: libstdc++2.10-dev
Version: 1:2.95.2-14
Severity: important
In bastring.h:
const charT* c_str () const
{ const charT* null_str = "";
if (length () == 0) return null_str; terminate (); return data (); }
The second line will _fail_ if charT is not char, which it for instance
is when instanciating the wstring class. Trying to use c_str() on a wstring
object gives this compilation error:
/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3/std/bastring.h:335:
initialization to `const __wchar_t *' from `const char *'
-- System Information
Debian Release: woody
Kernel Version: Linux perkele 2.2.17 #3 lör jan 13 09:53:26 CET 2001 i586 unknown
Versions of the packages libstdc++2.10 depends on:
ii libc6 2.2.2-4 GNU C Library: Shared libraries and Timezone
Reply to: