Bug 83087 - C++ STL "string" does not compile in 2.96-112.7.2.i386 version
C++ STL "string" does not compile in 2.96-112.7.2.i386 version
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2003-01-29 23:14 EST by Michael Furman
Modified: 2007-04-18 12:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-02-01 11:01:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Michael Furman 2003-01-29 23:14:40 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Description of problem:
I insatalled gcc/g++ RPM 2.96-112.7.2.i386 and found that file
"g++-3/std/bastring.h" has error in the line # 343 in the 
statement "if(length() == 0) return "";" : if the string template
is instantiated with the differen then "char" base type (in my case
it was wide character) compilation fail ("" is a pointer to char and
it cannot be used/casted as/to pointer to the different type).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Define a string of wide characters;
2.call method "c_str()"


Actual Results:  Compilation error

Expected Results:  no error

Additional info:
Comment 1 Jakub Jelinek 2003-02-01 11:01:46 EST
libstdc++ before the rewrite which showed up in GCC 3.0 doesn't support wide
chars (with the exception of the latest RHAS version).

Note You need to log in before you can comment on or make changes to this bug.