[Bug libstdc++/11845] New: [C++, libstdc++] basic_string instantiation fails for other than char

beszedes at cc dot u-szeged dot hu gcc-bugzilla@gcc.gnu.org
Thu Aug 7 12:59:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11845

           Summary: [C++, libstdc++] basic_string instantiation fails for
                    other than char
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: beszedes at cc dot u-szeged dot hu
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-linux
GCC target triplet: i386-linux

There seems to be a problem when instantiating std::basic_string for any type
other than char. The object is created but the linker complains about undefined
references. I use gcc version 3.3.1 20030626 (Debian prerelease).

The following simple program reproduces this error (type 'g++ p1.cpp'):

#include <string>

int main()
{
  std::basic_string<unsigned char> s;
  s.resize(2);
  return 0;
}



More information about the Gcc-bugs mailing list