Bug 84562

Summary: basic_string<> template doesn't instantiate char_traits<> for unsigned char
Product: [Retired] Red Hat Linux Reporter: James Antill <james.antill>
Component: libstdc++Assignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: bkoz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-02-19 00:03:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Test code. none

Description James Antill 2003-02-18 22:49:45 UTC
Description of problem:
 If you create a basic_string<unsigned char> the char_traits<> template helper
functions don't exist.

Version-Release number of selected component (if applicable):
 This works with 7.3 (2.96-113) and doesn't work with (3.2-7).

How reproducible:
 Always

Steps to Reproduce:
1. compile attached program as g++ -o basic_string_unsigned basic_string_unsigned.C.
2.
3.
    
Actual results:
 fails to link.

Expected results:
 runs and returns 0.

Additional info:

Comment 1 James Antill 2003-02-18 22:51:06 UTC
Created attachment 90169 [details]
Test code.

Comment 2 Benjamin Kosnik 2003-02-19 00:03:04 UTC
This is not a bug, but a deliberate decision. 

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