Red Hat Bugzilla – Bug 83087
C++ STL "string" does not compile in 2.96-112.7.2.i386 version
Last modified: 2007-04-18 12:50:28 EDT
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):
Steps to Reproduce:
1.Define a string of wide characters;
2.call method "c_str()"
Actual Results: Compilation error
Expected Results: no error
libstdc++ before the rewrite which showed up in GCC 3.0 doesn't support wide
chars (with the exception of the latest RHAS version).