public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21974] New: linking error of basic_string<unsigned char>
@ 2005-06-09  6:19 gcc-bugzilla at gcc dot gnu dot org
  2005-06-09  7:34 ` [Bug libstdc++/21974] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2005-06-09  6:19 UTC (permalink / raw)
  To: gcc-bugs


There's a linking error when I use std::basic_string<unsigned char> with
g++ 3.3, but it works perfectly in g++ 3.4 and 4.0 .  I've tried it on both
my Debian box with g++-3.3 and another with 5.3-RELEASE-p5 and g++32.  Both
of the cases cause the same error message (http://victor.csie.org/tmp/error.txt).

Thanks.

The following is my code.

#include <string>

int main(void)
{   
    std::basic_string<unsigned char> ustr;
    ustr.append(ustr);
    return 0;
}

Environment:
System: Linux victor 2.6.11.10 #1 Thu May 19 21:13:08 CST 2005 i686 GNU/Linux
Architecture: i686

	
host: i486-pc-linux-gnu
build: i486-pc-linux-gnu
target: i486-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux

How-To-Repeat:
Just compile it with g++ 3.3

-- 
           Summary: linking error of basic_string<unsigned char>
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: victor at csie dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i486-pc-linux-gnu
  GCC host triplet: i486-pc-linux-gnu
GCC target triplet: i486-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/21974] linking error of basic_string<unsigned char>
  2005-06-09  6:19 [Bug c++/21974] New: linking error of basic_string<unsigned char> gcc-bugzilla at gcc dot gnu dot org
@ 2005-06-09  7:34 ` pinskia at gcc dot gnu dot org
  2005-06-09  7:34 ` [Bug c++/21974] " pinskia at gcc dot gnu dot org
  2005-06-09  9:34 ` [Bug libstdc++/21974] " pcarlini at suse dot de
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-09  7:34 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |libstdc++


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/21974] linking error of basic_string<unsigned char>
  2005-06-09  6:19 [Bug c++/21974] New: linking error of basic_string<unsigned char> gcc-bugzilla at gcc dot gnu dot org
  2005-06-09  7:34 ` [Bug libstdc++/21974] " pinskia at gcc dot gnu dot org
@ 2005-06-09  7:34 ` pinskia at gcc dot gnu dot org
  2005-06-09  9:34 ` [Bug libstdc++/21974] " pcarlini at suse dot de
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-09  7:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-09 07:33 -------
3.3.x is no longer maintained.

-- 


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/21974] linking error of basic_string<unsigned char>
  2005-06-09  6:19 [Bug c++/21974] New: linking error of basic_string<unsigned char> gcc-bugzilla at gcc dot gnu dot org
  2005-06-09  7:34 ` [Bug libstdc++/21974] " pinskia at gcc dot gnu dot org
  2005-06-09  7:34 ` [Bug c++/21974] " pinskia at gcc dot gnu dot org
@ 2005-06-09  9:34 ` pcarlini at suse dot de
  2 siblings, 0 replies; 4+ messages in thread
From: pcarlini at suse dot de @ 2005-06-09  9:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pcarlini at suse dot de  2005-06-09 09:33 -------
This issue is in the FAQ, actually:

  http://gcc.gnu.org/onlinedocs/libstdc++/21_strings/howto.html#5

Recently, we started supporting such usages as (welcome) extensions.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-06-09  9:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-09  6:19 [Bug c++/21974] New: linking error of basic_string<unsigned char> gcc-bugzilla at gcc dot gnu dot org
2005-06-09  7:34 ` [Bug libstdc++/21974] " pinskia at gcc dot gnu dot org
2005-06-09  7:34 ` [Bug c++/21974] " pinskia at gcc dot gnu dot org
2005-06-09  9:34 ` [Bug libstdc++/21974] " pcarlini at suse dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).